
function displayOverlay(currentdiv, productId, prdCntr)
{
			if (document.getElementById("footerLocale") != null) {
				document.getElementById("footerLocale").style.visibility ='hidden';
				document.getElementById("footerLocale").style.display ='none';
			}
			hideAll(currentdiv);
			var obj=document.getElementById(currentdiv+productId);
			obj.style.display = "block";
			if (prdCntr%4 == 0) {
				document.getElementById("idTopLine"+productId).style.backgroundImage = 'url(/en_CA/products/new_layout/images/Nprd_quickview_top.png)';
			}
			if (prdCntr%4 == 1) {
				document.getElementById("idTopLine"+productId).style.backgroundImage = 'url(/en_CA/products/new_layout/images/Nprd_quickview_top01.png)';
				obj.style.left = "-130px";			
			}
			else if (prdCntr%4 == 2) {
				document.getElementById("idTopLine"+productId).style.backgroundImage = 'url(/en_CA/products/new_layout/images/Nprd_quickview_top02.png)';
				obj.style.left = "-310px";			
			}
			else if (prdCntr%4 == 3) {
				document.getElementById("idTopLine"+productId).style.backgroundImage = 'url(/en_CA/products/new_layout/images/Nprd_quickview_top03.png)';
				obj.style.left = "-452px";			
			}

		}
		
		function hideAll(currentdiv) {

			for (var i=910801; i<910830 ; i++) {
				if (document.getElementById(currentdiv+i) != null )
					document.getElementById(currentdiv+i).style.display = "none";
			}
			if (document.getElementById(currentdiv+'910825') != null ) {
				document.getElementById(currentdiv+'910825').style.display = "none";
			}

		}
	
	function showTab(myDiv, myTab, prdId) {
		document.getElementById("prdtTab1"+prdId).style.display = "none";
		document.getElementById("prdtTab2"+prdId).style.display = "none";
		document.getElementById("prdtTab3"+prdId).style.display = "none";
		document.getElementById("prdtTab4"+prdId).style.display = "none";
		document.getElementById(myDiv).style.display = "block";
		if (prdId == "910822") {
			var tab3ClassName = "prdtTab_03_splasher";		
			var tab3ClassName_mo = "prdtTab_03_splasher_mo";
		 } else {
			var tab3ClassName = "prdtTab_03";		
			var tab3ClassName_mo = "prdtTab_03_mo";
		}
		if(myTab == "prdtTab_01_id"+prdId) {
			document.getElementById("prdtTab_01_id"+prdId).className = "prdtTab_01_mo";
			document.getElementById("prdtTab_02_id"+prdId).className = "prdtTab_02";
			if (document.getElementById("prdtTab_03_id"+prdId) != null ) {
				document.getElementById("prdtTab_03_id"+prdId).className = tab3ClassName;
			}
			document.getElementById("prdtTab_04_id"+prdId).className = "prdtTab_04_new";
		}
		else if(myTab == "prdtTab_02_id"+prdId) {
			document.getElementById("prdtTab_01_id"+prdId).className = "prdtTab_01";
			document.getElementById("prdtTab_02_id"+prdId).className = "prdtTab_02_mo";
			if (document.getElementById("prdtTab_03_id"+prdId) != null ) {
				document.getElementById("prdtTab_03_id"+prdId).className = tab3ClassName;
			}
			document.getElementById("prdtTab_04_id"+prdId).className = "prdtTab_04_new";
		}
		else if(myTab == "prdtTab_03_id"+prdId) {
			document.getElementById("prdtTab_01_id"+prdId).className = "prdtTab_01";
			document.getElementById("prdtTab_02_id"+prdId).className = "prdtTab_02";			
			if (document.getElementById("prdtTab_03_id"+prdId) != null ) {
				document.getElementById("prdtTab_03_id"+prdId).className = tab3ClassName_mo;
			}
			document.getElementById("prdtTab_04_id"+prdId).className = "prdtTab_04_new";
		}
		else if(myTab == "prdtTab_04_id"+prdId) {
			document.getElementById("prdtTab_01_id"+prdId).className = "prdtTab_01";
			document.getElementById("prdtTab_02_id"+prdId).className = "prdtTab_02";	
			if (document.getElementById("prdtTab_03_id"+prdId) != null ) {
				document.getElementById("prdtTab_03_id"+prdId).className = tab3ClassName;
			}
			document.getElementById("prdtTab_04_id"+prdId).className = "prdtTab_04_new_mo";
		}
		
	}
