var counter=0;
function tabSwitch(id) {
		var ourElement = document.getElementById("more");
		if (ourElement.style.display=="block") {
			 ourElement.style.display = "none";
		} else {
			ourElement.style.display = "block";
		}
}	
function tabSwitch2(id) {
		var ourElement = document.getElementById("moretop");
		if (ourElement.style.display=="block") {
			 ourElement.style.display = "none";
		} else {
			ourElement.style.display = "block";
		}
}	
function SwapImage(SwapName,SwapNum){
	var me=SwapNum+1+counter;
	   if (me%2==0) {
	   SwapNum=1;
	   counter=counter+1;
	}
	else {
	   SwapNum=0;
	   counter=counter+1;
	}
	document.images[SwapName].src = "http://www.canoe.ca/CanoeMail/assets/img/"+SwapName+SwapNum+".gif";
	}
	
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function swapVideo(channel) {
	sv = new FlashObject("http://downloads.canoe.com.edgesuite.net/feedroom/canoe/teaser/Player.swf", "ca", "223", "288", "8", "#ffffff");
	sv.addVariable("skin", "embed");
	sv.addVariable("site", "canoe");
	sv.addVariable("fr_chl", channel);
	sv.addVariable("stories", "2");
	sv.addParam("quality", "high");
	sv.addParam("salign", "t");
	sv.addParam("wmode", "transparent");
	sv.addParam("allowScriptAccess", "always");
	sv.write("videoPlayer");
}

//Video Player
var sv;
// added the following for dfp exclusion. pejman aug 11
MyGenericTagVar.dfpSpeKey = {'!category':'olympic'};
