
//Scripts for Bisleri website

function dovoid()
{
}

var contentSKU = new Array;

contentSKU[0]="";
contentSKU[99]="<span style='color:#FF0000; background-color:#FFFFFF; font-size:0.8em; font-weight:bold'><br>click for more details...</span>";

contentSKU[1]="<span style='font-weight:bold; color:#0099EE'>20 LITRE JAR</span>.<br>Ideal for offices and other establishments.<br>Refillable and Reusable many times over.<br>";

contentSKU[2]="<span style='font-weight:bold; color:#0099EE'>5 LITRE JAR</span>.<br>Ideal for offices and homes.<br>Refillable and Reusable many times over.<br>";

contentSKU[3]="<span style='font-weight:bold; color:#0099EE'>2 LITRE BOTTLE</span>.<br>Ideal for taking along on short trips.<br>";

contentSKU[4]="<span style='font-weight:bold; color:#0099EE'>1.5 LITRE BOTTLE</span>.<br>Ideal for short trips and outings.<br>";

contentSKU[5]="<span style='font-weight:bold; color:#0099EE'>1 LITRE BOTTLE</span>.<br>Ideal for keeping in the car.<br>";

contentSKU[6]="<span style='font-weight:bold; color:#0099EE'>500 ml BOTTLE</span>.<br>Ideal for carrying along to the gym.<br>";

contentSKU[7]="<span style='font-weight:bold; color:#0099EE'>250 ml BOTTLE</span>.<br>Ideal for carrying while jogging.<br>";

contentSKU[8]="<span style='font-weight:bold; color:#0099EE'>250 ml GLASS</span>.<br>Ideal for in-house canteens/kitchens and reception desks.<br>";

function simplemouse(imgname,imgpath,xt)
{
document.getElementById(imgname).src=eval("imgpath + '.' + xt");
}

function simplemouseSKU(imgname,imgpath,xt,whichSKU)
{
document.getElementById(imgname).src=eval("imgpath + '.' + xt");
for(a=1;a<=8;a++)
	{if(whichSKU==a)
		{
		document.getElementById("popUpSKU").style.backgroundColor="";
		document.getElementById("popUpSKU").innerHTML=contentSKU[whichSKU] + contentSKU[99];
		}
	else if(whichSKU==0)
		{
			document.getElementById("popUpSKU").innerHTML=contentSKU[whichSKU];
			document.getElementById("popUpSKU").style.backgroundColor='';
		}
	}
}

function openSKU(whichFile)
{
	var windowSKU = window.open(whichFile,'skuWindow','left=300,top=100,width=600,height=520,scrollbars=no');
}

function blowupSKU(xx,x,y)
{
	document.getElementById(xx).width=x;
	document.getElementById(xx).height=y;
}

function fireUpNews(newsImage,w,h)
{
	var windowNews = window.open('blank.html','newsItem','left=150,top=100,width=700,height=600,scrollbars=yes,resizable=yes');
	windowNews.document.write("<img src='./images/news_scans/" + newsImage + "' width='" + w + "' height='" + h + "'>");
	windowNews.document.close();
}

var windowPressKit=null;

function fireUpPressKitItems(whichItem,w,h,ext,whichSelected)
	{
		if(windowPressKit && windowPressKit.open)
		windowPressKit.close();
		//else
		//{
		windowPressKit = window.open('','windowLogoBottlesCEO','left=300,top=100,width='+w+',height='+h+',scrollbars=no,resizeable=no,location=no');
		windowPressKit.document.write("<body leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0'>");
		windowPressKit.document.writeln("<div style='margin: 0px 0px 0px 0px; padding:0px'>");
		windowPressKit.document.writeln("<img src='./images/image_press_" + whichItem + "big." + ext + "' hspace=0 vspace=0>");
		windowPressKit.document.writeln("</div>");
		windowPressKit.document.writeln("</body>");
		windowPressKit.document.close();
		windowPressKit.focus();
		//}
	}
	
function fireUpVideoFeed(whichVideoHTML,videoW,videoH)
	{
		windowVideoFeed=window.open(whichVideoHTML,'videoWindow','left=300,top=100,width='+videoW+',height='+videoH+',scrollbars=no,resizeable=no,location=no')
	}

var toolTip = new Array();
toolTip[0] = "\n";
toolTip[1] = "If you are experiencing too many breaks while viewing the video, \n";
toolTip[2] = "it could be because of a slow internet connection or if you have downloads \n";
toolTip[3] = "happening in the background.\n\n";
toolTip[4] = "To ensure a smooth video experience, you could pause the video \n";
toolTip[5] = "for about a minute. Even as you pause the video, the content of the video \n";
toolTip[6] = "will continue to get buffered, so that it plays back smoothly when you \n";
toolTip[7] = "release the pause button. \n\n";
toolTip[8] = "You can confirm this by observing the grey bar gradually extending horizontally \n";
toolTip[9] = "under the red bar. The red segment denotes already viewed content.";

function doToolTip()
{
	alert(toolTip[0] + toolTip[1] + toolTip[2] + toolTip[3] + toolTip[4] + toolTip[5] + toolTip[6] + toolTip[7] + toolTip[8] + toolTip[9]);
}
