﻿function OpenLink(pNum,htmlOnly){
	// version 1.0 072006
	var newWin = 0;//open in self
	var plink = "http://www.trane.com/Commercial/";//default url
	//alert('OpenLink('+pNum+')'); // 4local test
	switch (pNum) {
	//There are 8 links total, 2 in each section
		//Airside
		case 11 :plink="/Commercial/Dna/View.aspx?i=989";newWin=0;break;//explore 
		case 12 :plink="/Commercial/DNA/View.aspx?i=888";newWin=0;break;//see how trane...indoor air quality
		
		//Chillers
		case 21 :plink="/Commercial/Dna/View.aspx?i=975";newWin=0;break;//explore  
		case 22 :plink="/Commercial/DNA/View.aspx?i=888";newWin=0;break;//see how trane...indoor air quality
		
		//Controls
		case 31 :plink="/Commercial/Dna/View.aspx?i=875";newWin=0;break;//explore  
		case 32 :plink="/Commercial/DNA/View.aspx?i=875";newWin=0;break;//see how trane...high performance
		
		//Heat Rejection
		case 41 :plink="/Commercial/Dna/View.aspx?i=1010";newWin=0;break;//explore  
		case 42 :plink="/Commercial/DNA/View.aspx?i=890";newWin=0;break;//see how trane...energy efficient
	
	}
	
	if (newWin==1) {window.open(plink,"tranelink");} else {window.location.href=plink;};
}

function webTrack(pNum){
	// Tracking template :: Version 3.0 
	// Project Modification date :: 120106
	//alert('webTrack('+pNum+')'); // Uncomment to use for local Flash link test :: Not to be used for live site
	//
	//
	// ***************** Tracking variables - Edit these for your project
	var dcsuri_value = "";
	var projectName = "";
	var productName = "";
	var campaign = "";
	var track = "notset";
	var dsc_ext = "LandingPage";
	var ac_value = "null";
	
	
	switch (pNum) {
		// landing page
		
		case 1:		track = 'description here';
					ptEvent = 'eventtag';
					break;
		case 2:		track = 'description here';
					ptEvent = 'eventtag';
					break;
		case 3: 	track = 'description here';
					ptEvent = 'eventtag';
					break;
		
	
	}
	
	// ***************** call tracking scripts - DO NOT EDIT
	
	if  (track != 'notset') {
	// WEBTRENDS: (comment out if you're not using this tracking for this project)
	var ti_value = projectName + " " + track;
	var dscExt_value = productName + ":" + campaign + ":" + ptEvent;
	dcsMultiTrack('DCS.dcsuri', dcsuri_value, 'WT.ti', ti_value, 'DCSext.' + dsc_ext, dscExt_value, 'WT.ac', ac_value);
	};
	
	
	// FIRECLICK: (uncomment and include above if statment if you're using fireclick tracking)
	//fc_flash(projectName, WTparam);
		
	// Uncomment line below to use for local webtrends test :: Not to be used for live site
	//alert("dcsMultiTrack('DCS.dcsuri', " + dcsuri_value + ", 'WT.ti'," + ti_value + ", 'DCSext." + dsc_ext + "," + dscExt_value + ", 'WT.ac'," + ac_value +");");

	
	
}