//-----------------------------------------------
// Dynamic Content 2.0                          |
//  Now supports IE, NS4, NS6                   |
// (c) 2002 Premshree Pillai                    |
// Web : http://www.qiksearch.com               |
// E-mail :premshree@hotmail.com                |
// Use freely as long as this message is intact |
//-----------------------------------------------
// Location of script : http://www.qiksearch.com/javascriptsnew/dynamic-content20.htm
// Support IE4+, NS6+.
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;


function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+"; expires="+exdate.toGMTString() + "; path=/";

}


function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
}

function showWorkBookPrice(content_price,  price_div )
{
if(ie4)	 {showPriceObj=document.all.price_div;	}	
if(ns6)	 {showPriceObj=document.getElementById(price_div);	}	
if(ie4||ns6) {
	if(showPriceObj.innerHTML!=content_price)		
		{showPriceObj.innerHTML=content_price;}
			}
}

function showWorkBookPrice2(content_price,  price_div2 )
{
if(ie4)	 {showPriceObj=document.all.price_div2;	}	
if(ns6)	 {showPriceObj=document.getElementById(price_div2);	}	
if(ie4||ns6) {
	if(showPriceObj.innerHTML!=content_price)		
		{showPriceObj.innerHTML=content_price;}
			}
}

function showContent(content_price, content_shipping, price_div, ship_price_div,currency2)
{	
if(ie4) {
	showPriceObj=document.all.price_div;		
	showShipPriceObj=document.all.ship_price_div;	}	
if(ns6) {
	showPriceObj=document.getElementById(price_div);		
	showShipPriceObj=document.getElementById(ship_price_div);	}	
if(ie4||ns6)	{
	if(showPriceObj.innerHTML!=content_price)		
	{
		showPriceObj.innerHTML=content_price;			
		showShipPriceObj.innerHTML=content_shipping;		}
	}

setCookie('currency',currency2,1);
}

function ShowCookie(c_name)
{
temp=getCookie(c_name);
	alert(temp);
}
