

var vod_data = {
	title 		 : 'Naked Mom Confessions',
	title_url 	 : 'http://www.momversation.com/episodes/should-your-kids-see-you-naked',
	property_url : 'http://www.momversation.com',
	thumbnail	 : 'http://cdn.deca.tv/network/women/header/images/naked.jpg',
	property	 : 'Momversation',
	sponsor_bug	 : '', // http://cdn.deca.tv/network/women/header/images/bg_hp.png
	sponsor_link : '' // http://www.hp.com
};


/** The line below must be changed to match the location of universal_header.css **/

var css_url = 'http://cdn.deca.tv/network/women/v0.2/header3/';

var network_sites = new Object();

network_sites.mv = {
	name : 'Momversation', 
	URL : 'http://www.momversation.com/',
	network : 'women',
	styles : {
		background : '#000',
		color : '#ffffff',
		prop_color : '#848485',
		li_background : 'images/pa_bg_n_nav_li.png'
	}
};

network_sites.gb = {
	name : 'Good Bite',
	URL : 'http://www.goodbite.com/',
	netowrk : 'women'
};

network_sites.cm = {
	name : 'Cool Mom',
	URL : 'http://www.coolmom.com/',
	network : 'women',
	styles : {
		background : '#000',
		color : '#ffffff',
		prop_color : '#848485',
		li_background : 'images/pa_bg_n_nav_li.png'
	}
};

network_sites.pa = {
	name : 'Parents Ask',
	URL : 'http://www.parentsask.com/',
	network : 'women',
	styles : {
		background : 'url(images/pa_bg_nethead.png)',
		color : '#ffffff',
		prop_color : '#ffafda',
		li_background : 'url(images/pa_bg_n_nav_li.png)'
	}
};



/* include the actual header */

var UHeader = {
	init : function(prop) {

		$('head').append('<link type="text/css" rel="stylesheet" media="all" href="'+css_url+'universal_header.css" />');

		var header = '<div id="network_header"><div class="hat_wrap">';
		
		header += '<div id="deca_u_header"><p id="text">More great sites for women:</p><ul id="n_nav">';
		if(prop)
			var style = network_sites[prop].styles;

		jQuery.each(network_sites, function(key, val) {
			header += '<li><a'+(key == prop ? ' class="soft"':'')+' href="' + val.URL + '">'  + val.name + '</a></li>';
		});
	
		header += '</ul></div>';

		header += '<div id="vod" class="vod">';
		header += '<p>Video of the Day</p>';
		header += '<p class="soft font_10">' + vod_data.title + '</p>';
		header += '<ul id="vid"><li id="vid_dd">';	

		header += '<a href="' + vod_data.title_url + '">';
		header += '<img src="' + vod_data.thumbnail + '" class="thumb" /></a>';
		header += '<p><a href="' + vod_data.title_url + '">' + vod_data.title + '</a></p>';
		header += '<p><a class="soft" href="' + vod_data.property_url + '">on ' + vod_data.property + '</a>';
		header += '<a class="watch" href="' + vod_data.title_url + '">Watch Video</a></p>';

		if(vod_data.sponsor_link) {
			header += '<p class="brought"><span>Brought to you by</span>';
			header += '<a href="' + vod_data.sponsor_link + '" target="_blank"><img src="' + vod_data.sponsor_bug + '" /></a></p>';
		}
	
		header += '</li></ul></div>'; // Close video box

		header += '</div></div>'; // Close wrapper and header

		$('body').append(header);
		
		$('#n_nav li:last').addClass('last');


	}
};

