//Images
var tImage=new Array()
tImage["svm"]="/images/news/thumb_locator.jpg";
tImage["fae"]="/images/news/thumb_account.jpg";
tImage["vehicleInf"]="/images/news/thumb_FPO.jpg";
tImage["FPO"]="/images/news/thumb_FPO.jpg";
tImage["PPV"]="/images/news/thumb_police.jpg";
tImage["ambulance"]="/images/news/thumb_ambulance.jpg";
tImage["svConversionVan"]="/images/news/thumb_pacer_ls.jpg";
tImage["platform"]="/images/news/thumb_platform_stake.jpg";
tImage["utility"]="/images/news/thumb_utility_service.jpg";
tImage["vanBody"]="/images/news/thumb_van_body.jpg";
tImage["police"]="/images/news/promotitle_police.jpg";
tImage["gmnews"]="/images/news/thumb_gm.jpg";
tImage["VanSafety"]="/images/news/thumb_van_safety.jpg";
tImage["TechnicalTips"]="/images/news/thumb_tech.jpg";
tImage["onstar"]="/images/news/thumb_onstar.jpg";
tImage["fvx"]="/images/news/thumb_purchase.jpg";
tImage["AstroBody"]="/images/news/thumb_astro.jpg";
tImage["MidBox"]="/images/news/thumb_midbox.jpg";
tImage["businessChoice"]="/images/news/thumb_choice.jpg";
tImage["findDealer"]="/images/news/thumb_dealers_chevy_gmc.jpg";

//Titles
var tTitle=new Array()
tTitle["svm"]="SVM Locator";
tTitle["fae"]="Commercial & Government Sales";
tTitle["vehicleInf"]="Vehicle Information";
tTitle["FPO"]="Lorem ipsum dolor sit";
tTitle["PPV"]="All-New 2011 Chevrolet Caprice PPV";
tTitle["ambulance"]="Specialty Vehicles ";
tTitle["svConversionVan"]="Specialty Vehicles ";
tTitle["platform"]="Specialty Vehicles ";
tTitle["utility"]="Specialty Vehicles ";
tTitle["vanBody"]="Specialty Vehicles ";
tTitle["police"]="Police Vehicles ";
tTitle["gmnews"]="GM News";
tTitle["VanSafety"]="Passenger Van Safety";
tTitle["TechnicalTips"]="Technical Tips";
tTitle["onstar"]="OnStar";
tTitle["fvx"]="Fleet Purchase Program (FVX)";
tTitle["AstroBody"]="AstroBody";
tTitle["MidBox"]="MidBox";
tTitle["businessChoice"]="Business Choice";
tTitle["findDealer"]="Business Central Dealers";

//Copies
var tCopy=new Array()
tCopy["svm"]="GM Special Vehicle Manufacturers provide quality upfit products to enhance your GM chassis and vans.";
tCopy["fae"]="Get support for your government vehicle needs.";
tCopy["vehicleInf"]="Get information about our full van portfolio, vocational applications, and van safety. ";
tCopy["FPO"]="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed";
tCopy["PPV"]="Investigate the powerful, intelligent and spacious police patrol vehicle.";
tCopy["ambulance"]="View upfit options available for<br />this chassis. ";
tCopy["svConversionVan"]="View upfit options available for<br />this chassis.";
tCopy["platform"]="View upfit options available for<br />this chassis.";
tCopy["utility"]="View upfit options available for<br />this chassis.";
tCopy["vanBody"]="View upfit options available for<br />this chassis.";
tCopy["police"]="View all police and special<br />service vehicles.";
tCopy["gmnews"]="Get the latest news and current offers.";
tCopy["VanSafety"]="The most comprehensive standard safety package ever offered on a GM full-size van.";
tCopy["TechnicalTips"]="Discover ways to lower your fleet maintenance and repair expenses.";
tCopy["onstar"]="Gain greater productivity and efficiency by using OnStar features like Turn-by-Turn navigation.";
tCopy["fvx"]="Get allowances on select GM models for varied uses (for qualified fleet customers).";
tCopy["AstroBody"]="Learn how to upfit your vehicle with AstroBody features & options.";
tCopy["MidBox"]="Learn how to upfit your vehicle with MidBox features & options.";
tCopy["businessChoice"]="GM Business Choice offers four great options to equip your eligible new Chevy or GMC vehicles.";
tCopy["findDealer"]="The one-stop shop for business owner's vehicle needs.";

//urls
var tURL=new Array()
tURL["svm"]="/sitemap/svmlocator_landing.jsp";
tURL["fae"]="/government/ordering/commercial-government-police-sales-managers.jsp";
tURL["vehicleInf"]="#";
tURL["FPO"]="#";
tURL["PPV"]="http://www.chevroletcapriceppv.com";
tURL["ambulance"]="/ambulance-rescue/";
tURL["svConversionVan"]="/conversion-van/";
tURL["platform"]="/platform-stake-body/";
tURL["utility"]="/utility-service-body/";
tURL["vanBody"]="/van-body/";
tURL["police"]="/police/";
tURL["gmnews"]="/sitemap/newsOffers.jsp";
tURL["VanSafety"]="javascript:flashPopUp('/flash/van-safety-video/vansafetyvideo.jsp','Safety','width=420,height=340')";
tURL["TechnicalTips"]="/service-maintenance/maintenance-info/technicaltips.jsp";
tURL["onstar"]="javascript:omniOnstar('promo tile'); flashPopUp('http://www.onstar.com/us_english/jsp/services/index.jsp?make=gmFleet&model=gmFleet&deepLink=overview','ONSTAR','width=897,height=595,top=0,left=0,scrollbars=yes');";
tURL["fvx"]="/smallbusiness/incentives/2010fvx.jsp?from=CO";
tURL["AstroBody"]="/pdf/Astro_Body_Hero_Card.pdf";
tURL["MidBox"]="/pdf/Midbox_Storage.pdf";
tURL["businessChoice"]="/businessChoice/gmfleet/index.jsp?cmp=BusChoice_Fleet ";
tURL["findDealer"]="/business-central-dealers/index.jsp";

//target
var tOpenResult=new Array()
tOpenResult["svm"]="_self";
tOpenResult["fae"]="_self";
tOpenResult["vehicleInf"]="_self";
tOpenResult["sVehicles"]="_self";
tOpenResult["FPO"]="_self";
tOpenResult["PPV"]="_blank";
tOpenResult["ambulance"]="_self";
tOpenResult["svConversionVan"]="_self";
tOpenResult["platform"]="_self";
tOpenResult["utility"]="_self";
tOpenResult["vanBody"]="_self";
tOpenResult["police"]="_self";
tOpenResult["gmnews"]="_self";
tOpenResult["VanSafety"]="";
tOpenResult["TechnicalTips"]="_self";
tOpenResult["onstar"]="";
tOpenResult["fvx"]="_self";
tOpenResult["AstroBody"]="_blank";
tOpenResult["MidBox"]="_blank";
tOpenResult["businessChoice"]="_blank";
tOpenResult["findDealer"]="_self";

//additional information
var tAdditional=new Array()
tAdditional["svm"]="Learn More &gt;&gt;";
tAdditional["fae"]="Learn More &gt;&gt;";
tAdditional["vehicleInf"]="Learn More &gt;&gt;";
tAdditional["sVehicles"]="Learn More &gt;&gt;";
tAdditional["FPO"]="Learn More &gt;&gt;";
tAdditional["PPV"]="Learn More &gt;&gt;";
tAdditional["ambulance"]="Learn More &gt;&gt;";
tAdditional["svConversionVan"]="Learn More &gt;&gt;";
tAdditional["platform"]="Learn More &gt;&gt;";
tAdditional["utility"]="Learn More &gt;&gt;";
tAdditional["vanBody"]="Learn More &gt;&gt;";
tAdditional["police"]="Learn More &gt;&gt;";
tAdditional["gmnews"]="Learn More &gt;&gt;";
tAdditional["VanSafety"]="Watch the Video &gt;&gt;";
tAdditional["TechnicalTips"]="Learn More &gt;&gt;";
tAdditional["onstar"]="Learn More &gt;&gt;";
tAdditional["fvx"]="Learn More";
tAdditional["AstroBody"]="Learn More";
tAdditional["MidBox"]="Learn More";
tAdditional["businessChoice"]="Learn More &gt;&gt;";
tAdditional["findDealer"]="Learn More &gt;&gt;";

//Promotiles Omnitures

var tRel=new Array()
tRel["svm"]="";
tRel["fae"]="omni-FAEPROMOTILE";
tRel["gmnews"]="";
tRel["VanSafety"]="";
tRel["TechnicalTips"]="";
tRel["onstar"]="";
tRel["fvx"]="";
tRel["AstroBody"]="";
tRel["MidBox"]="";
tRel["businessChoice"]="";
tRel["findDealer"]="";

function overviewTile(){
	this.tImages=tImage;
	this.tTitles=tTitle;
	this.tTexts=tCopy;
	this.tURLs=tURL;	
	this.getPageTilesOverview=getPageTilesOverview;
	this.tOpenResult=tOpenResult;
	this.tAdditional=tAdditional;
	this.tRel=tRel;
}

function getPageTilesOverview(pTile1, pTile2, pTile3){
	
	var cTileHead;
	var cTileEnd;
		cTileHead = "<div id=\"newsOverview\">";
		cTileEnd = "</a>";
	var cTilesContent	=	cTileHead + "<div id=\"toolNewContent\">" +
							"<div class=\"newItemOverview\">"  +
								"<a rel=\"" + this.tRel[pTile1] +"\" name=\"" + pTile1 +"\" href=\""+ this.tURLs[pTile1] +"\" target=\""+ this.tOpenResult[pTile1] +"\"><img src=\""+ this.tImages[pTile1] +"\"/></a>" +
								"<h3>"+ this.tTitles[pTile1] +"</h3>" +
								"<p>"+ this.tTexts[pTile1] +"</p>" +
								"<a class=\"overviewLink\" rel=\"" + this.tRel[pTile1] +"\" name=\"" + pTile1 +"\" href=\""+ this.tURLs[pTile1] +"\" target=\""+ this.tOpenResult[pTile1] +"\">"+ this.tAdditional[pTile1] + cTileEnd +
							"</div>"; 
		if (pTile2 != undefined){					
			cTilesContent= cTilesContent + "<div class=\"newItemOverview\">" +
								"<a rel=\"" + this.tRel[pTile2] +"\" name=\"" + pTile2 +"\" href=\""+ this.tURLs[pTile2] +"\" target=\""+ this.tOpenResult[pTile2] +"\"><img src=\""+ this.tImages[pTile2] +"\"/></a>" +
								"<h3>"+ this.tTitles[pTile2] +"</h3>" +
								"<p>"+ this.tTexts[pTile2] +"</p>" +
								"<a class=\"overviewLink\" rel=\"" + this.tRel[pTile2] +"\" name=\"" + pTile2 +"\" href=\""+ this.tURLs[pTile2] +"\" target=\""+ this.tOpenResult[pTile2] +"\">"+ this.tAdditional[pTile2] +" </a>" +
							"</div>";	
		}
		if (pTile3 != undefined){					
			cTilesContent= cTilesContent + "<div class=\"newItemOverview\">" +
								"<a rel=\"" + this.tRel[pTile3] +"\" name=\"" + pTile3 +"\" href=\""+ this.tURLs[pTile3] +"\" target=\""+ this.tOpenResult[pTile3] +"\"><img src=\""+ this.tImages[pTile3] +"\"/></a>" +
								"<h3>"+ this.tTitles[pTile3] +"</h3>" +
								"<p>"+ this.tTexts[pTile3] +"</p>" +
								"<a class=\"overviewLink\" rel=\"" + this.tRel[pTile3] +"\" name=\"" + pTile3 +"\" href=\""+ this.tURLs[pTile3] +"\" target=\""+ this.tOpenResult[pTile3] +"\">"+ this.tAdditional[pTile3] +" </a>" +
							"</div>";	
		}
		cTilesContent= cTilesContent + 	"</div>" + 	"</div>" + "<div id=\"toolNewLast\">";			
	return cTilesContent;	
}


function PageTilesOverview(pTiles1, pTiles2,  pTiles3){
	this.overviewTiles1=pTiles1;
	this.overviewTiles2=pTiles2;
	this.overviewTiles3=pTiles3;
	
}

function getRotationTilesOverview(pfileName, pRotation1, pRotation2, pRotation3){
	var aTiles1,aTiles2,aTiles3,aTilesContainer,pTitles;
	pTitles=overviewInfo[pfileName];
	aTiles1=pTitles.overviewTiles1;
	aTiles2=pTitles.overviewTiles2;	
	aTiles3=pTitles.overviewTiles3;	
	aTilesContainer = new Array (aTiles1[pRotation1], aTiles2[pRotation2], aTiles3[pRotation3]);
	return aTilesContainer;
}

function getLengthOverview(fileName){
	var cont;
	if(overviewInfo[fileName]){
		var i = new PageTilesOverview(overviewInfo[fileName].overviewTiles1, overviewInfo[fileName].overviewTiles2, overviewInfo[fileName].overviewTiles3);
		cont = new Array(i.overviewTiles1.length, i.overviewTiles2.length, i.overviewTiles3.length);			
	}
	return cont;
}
function flashPopUp(URL,winName,params){
	//**
	window.open(URL,winName,params);
	//**
}