function promo_events(par)
{
	switch(par)
	{
		case 0:window.location.href="/essence/";
		break;
		case 1:window.open('/topten/?status=popup','toptenwindow','width=920,height=900,scrollbars=1');
		break;
		case 2:window.location.href="/fordroadtrip/";
		break;
	}
}


function externalpage(par,page)
{
s.linkTrackVars="pageName,server,channel,prop5,prop14,prop15,eVar4,eVar6,eVar14,eVar15,events";
s.linkTrackEvents="event4";
s.channel="home"
s.pageName="urb: home: "+par+" exit";
s.server=window.location.hostname;
s.prop5="urb: home: "+par+" exit";
s.prop14="uniworld"
s.prop15="fordurban.com"
s.events="event4"
s.eVar4="eng"
s.prop11= ""
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.tl(this, 'e', s.prop5);
window.open(page,'mywindow','width=1024,height=780,scrollbars=yes');
}

function pageopen(page)
{
	
	if(page=="specialevent")
	{
		s.linkTrackVars="pageName,server,channel,prop5,prop14,prop15,eVar4,eVar6,eVar14,eVar15,events";
	s.linkTrackEvents="event4";
	s.channel="community events"
	s.pageName="urb: community events: swap your ride exit";
	s.server=window.location.hostname;
	s.prop5="urb: community events: swap your ride exit";
	s.prop14="uniworld"
	s.prop15="fordurban.com"
	s.events="event4"
	s.eVar4="eng"
	s.prop11= ""
	s.eVar14="uniworld"
	s.eVar15="fordurban.com"
	s.tl(this, 'e', s.prop5);
		window.open('http://www.fordspecialevent.com','mywindow','width=1024,height=780,scrollbars=yes');
	}else{
	page="/"+page;
	window.location.href=page;
	}
}

function taurus_winopen()
{
window.open('/topten/?status=popup','toptenwindow','width=800,height=600,scrollbars=1');	
}

function success_load()
{
s.pageName="urb: signup: details: thank you"
s.server=window.location.hostname;
s.channel="events"
s.prop11="urb: signup: details: thank you"
s.prop14="uniworld"
s.prop15="fordurban.com"
s.prop18="signup entry";
s.prop20="email opt-in full";
s.events="event10,event13"
s.eVar4="eng"
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.hier1="urb: signup"
s.eVar28="signup entry";
var s_code=s.t();if(s_code)document.write(s_code)
}

function success_xload()
{
s.pageName="urb: signup: details: thank you"
s.server=window.location.hostname;
s.channel="events"
s.prop11="urb: signup: details: thank you"
s.prop14="uniworld"
s.prop15="fordurban.com"
s.prop18="signup entry";
s.events="event10"
s.eVar4="eng"
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.hier1="urb: signup"
s.eVar28="signup entry";
var s_code=s.t();if(s_code)document.write(s_code)
}

function contact_us()
{
url="http://www.fordvehicles.com/help/contact/";
s.pageName="urb: home: contact us"
s.server=window.location.hostname;
s.prop5=""
s.channel="home"
s.prop11="urb: home: contact us"
s.prop14="uniworld"
s.prop15="fordurban.com"
s.events=""
s.eVar4="eng"
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.hier1="urb: home"
var s_code=s.t();if(s_code)document.write(s_code);
window.open(url,'contact','width=640,height=480,scrollbars=1,resizable=1');
}

function terms_conditions()
{
url="http://www.fordvehicles.com/help/privacy/";
s.pageName="urb: home: terms conditions"
s.server=window.location.hostname;
s.prop5=""
s.channel="home"
s.prop14="uniworld"
s.prop15="fordurban.com"
s.events="event4"
s.eVar4="eng"
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.hier1="urb: home"
var s_code=s.t();if(s_code)document.write(s_code);
window.open(url,'terms','width=640,height=480,scrollbars=1,resizable=1');
}

function ford_link()
{
url="http://www.fordvehicles.com/";
s.linkTrackVars="pageName,server,channel,prop5,prop14,prop15,eVar4,eVar6,eVar14,eVar15,events";
s.linkTrackEvents="event4";
s.channel="home"
s.pageName="urb: home: ford vehicles exit"
s.server=window.location.hostname;
s.prop5="urb: home: ford vehicles exit"
s.prop14="uniworld"
s.prop15="fordurban.com"
s.events="event4"
s.eVar4="eng"
s.prop11= ""
s.eVar6="ford vehicles"
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.tl(this, 'e', s.prop5);
window.open(url,'fordlnk','width=640,height=480,scrollbars=1,resizable=1');
}

function facebook_link()
{
url="http://www.facebook.com/";
s.linkTrackVars="pageName,server,channel,prop5,prop14,prop15,eVar4,eVar6,eVar14,eVar15,events";
s.linkTrackEvents="event4";
s.channel="home"
s.pageName="urb: home: facebook exit"
s.server=window.location.hostname;
s.prop5="urb: home: facebook exit"
s.prop14="uniworld"
s.prop15="fordurban.com"
s.events="event4"
s.eVar4="eng"
s.prop11= ""
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.tl(this, 'e', s.prop5);
window.open(url,'facebook','width=640,height=480,scrollbars=1,resizable=1');
}


function twitter_link()
{
url="http://www.twitter.com/";
s.linkTrackVars="pageName,server,channel,prop5,prop14,prop15,eVar4,eVar6,eVar14,eVar15,events";
s.linkTrackEvents="event4";
s.channel="home"
s.pageName="urb: home: twitter exit"
s.server=window.location.hostname;
s.prop5="urb: home: twitter exit"
s.prop14="uniworld"
s.prop15="fordurban.com"
s.events="event4"
s.eVar4="eng"
s.prop11= ""
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.tl(this, 'e', s.prop5);
window.open(url,'twitter','width=640,height=480,scrollbars=1,resizable=1');
}

function share_link(par)
{
	switch(par)
	{
	case "focus":s.pageName="urb: vehicles: cars: share: ford focus"
			   s.prop5="urb: vehicles: cars: share: ford focus"
			   s.hier1="urb: vehicles: cars"
			   s.prop16="ford focus"
		   	   break;
	case "taurus":s.pageName="urb: vehicles: cars: share: ford taurus"
			   s.prop5="urb: vehicles: cars: share: ford taurus"
			   s.hier1="urb: vehicles: cars"
			   s.prop16="ford taurus"
		   	   break;
	case "taurussho":s.pageName="urb: vehicles: cars: share: ford taurus sho"
			   s.prop5="urb: vehicles: cars: share: ford taurus sho"
			   s.hier1="urb: vehicles: cars"
			   s.prop16="ford taurus sho"
		   	   break;
	case "fordfiesta":s.pageName="urb: vehicles: cars: share: ford fiesta"
			   s.prop5="urb: vehicles: cars: share: ford fiesta"
			   s.hier1="urb: vehicles: cars"
			   s.prop16="ford fiesta"
		   	   break;
	case "fusionsprt":s.pageName="urb: vehicles: cars: share: ford fusion sport"
			   s.prop5="urb: vehicles: cars: share: ford fusion sport"
			   s.hier1="urb: vehicles: cars"
			   s.prop16="ford fusion sport"
		   	   break;
	case "escape":s.pageName="urb: vehicles: suvs: share: ford escape"
			   s.prop5="urb: vehicles: suvs: share: ford escape"
			   s.hier1="urb: vehicles: suvs"
			   s.prop16="ford escape"
		   	   break;
	case "f150":s.pageName="urb: vehicles: trucks: share: ford f-150"
			   s.prop5="urb: vehicles: trucks: share: ford f-150"
			   s.hier1="urb: vehicles: trucks"
			   s.prop16="ford f-150"
		   	   break;
	case "flex":s.pageName="urb: vehicles: crossovers: share: ford flex"
			   s.prop5="urb: vehicles: crossovers: share: ford flex"
			   s.hier1="urb: vehicles: crossovers"
			   s.prop16="ford flex"
		   	   break;
	case "edge":s.pageName="urb: vehicles: crossovers: share: ford edge"
			   s.prop5="urb: vehicles: crossovers: share: ford edge"
			   s.hier1="urb: vehicles: crossovers"
			   s.prop16="ford edge"
		   	   break;
	case "fusionhyb":s.pageName="urb: vehicles: hybrid: share: ford fusion hybrid"
			   s.prop5="urb: vehicles: hybrid: share: ford fusion hybrid"
			   s.hier1="urb: vehicles: hybrid"
			   s.prop16="ford fusion hybrid"
		   	   break;
	case "3,1":s.pageName="urb: vehicles: hybrid: share: ford escape hybrid"
			   s.prop5="urb: vehicles: hybrid: share: ford escape hybrid"
			   s.hier1="urb: vehicles: hybrid"
			   s.prop16="ford escape hybrid"
		   	   break;
	case "fiestacolor":s.pageName="urb: events: fiestacolor: share: fiesta casting call"
			   s.prop5="urb: events: fiestacolor: share: fiesta casting call"
			   s.hier1="urb: events: fiestacolor"
			   s.prop16="fiesta casting call"
		   	   break;
	}
	s.linkTrackVars="pageName,server,channel,prop5,prop14,prop15,eVar4,eVar6,eVar14,eVar15,events";
	s.linkTrackEvents="event4";
	s.channel="home"
	s.prop14="uniworld"
	s.prop15="fordurban.com"
	s.events="event4"
	s.eVar4="eng"
	s.prop11= ""
	s.eVar14="uniworld"
	s.eVar15="fordurban.com"
	s.tl(this, 'e', s.prop5);
	url=window.location;
	window.open("share.php?url="+url,'share','width=230,height=125,scrollbars=1');
}

function promo_link(par)
{
	switch(par)
	{
		case "taurus": pageopen('topten')
						break;
		case "tomjoyner": pageopen('tomjoyner/')
						break;
		
		case "roadtrip": pageopen('fordroadtrip/')
						break;
		
		case "driveone": externalpage('driveone','http://www.drive4hbcu.com/');
						break;
		
		case "essence": pageopen('essence/')
						break;
		
		case "fordcredit": externalpage('ford credit','http://www.fordcredit.com/');
						break;
		
		case "fordstory": externalpage('ford story','http://www.fordvehicles.com/thefordstory/');
						break;
		
		case "sync": 	pageopen('sync')
						break;
		
		case "funkflexsweeps":   pageopen('funkflexsweeps/')
						break;
						
		case "fiestacolor":	pageopen('fiestacolor/')
						break;
						
		case "allin":	pageopen('allin/')
						break;
		}
}

function eventcalendar_win(par, page)
{
s.linkTrackVars="pageName,server,channel,prop5,prop14,prop15,eVar4,eVar6,eVar14,eVar15,events";
s.linkTrackEvents="event4";
s.channel="events: eventcalendar"
s.pageName="urb: events: eventcalendar: "+par+" exit";
s.server=window.location.hostname;
s.prop5="urb: events: eventcalendar: "+par+" exit";
s.prop14="uniworld"
s.prop15="fordurban.com"
s.events="event4"
s.eVar4="eng"
s.prop11= ""
s.eVar14="uniworld"
s.eVar15="fordurban.com"
s.tl(this, 'e', s.prop5);
if(page=="essence/"){
	//window.location(page)
	var locationObj = window.location;
	window.location = self.location;
	window.location = page;
}else{
window.open(page);
}
document.title = "Fordurban.com";
}
