function IsPopupBlocker() {
	var oWin = window.open("","testpopupblocker","width=0,height=0,top=0,left=0");
	if (oWin==null || typeof(oWin)=="undefined") {
		return true;
	} else {
		oWin.close();
		return false;
	}
}

function Opencity()
{
if (IsPopupBlocker()) {

	alert("You HAVE A POPUP BLOCKER\rDisable your Popup Blocker (or) \rHold the Ctrl key when clicking on the link ");
	
	}
else
{
pc = './bin/towncity.asp'
window.open(pc,'NL','WIDTH=760, HEIGHT=500, left=100, top=10, toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,maximize=yes,minimise=no');
}
}

function Openprod()
{
if (IsPopupBlocker()) {

	alert("You HAVE A POPUP BLOCKER\rDisable your Popup Blocker (or) \rHold the Ctrl key when clicking on the link ");
	
	}
else
{
pc = './bin/productlist.asp'
window.open(pc,'NL1','WIDTH=800, HEIGHT=550, left=100, top=10, toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,maximize=yes,minimise=no');
}
}
function asrh(frm)
{
frm.action="asrh.asp";
frm.submit();
}

// Beginning Top message line -

function HideMessage(){
    document.getElementById("fnNr").style.display='none';}

var message="HAPPY NEW YEAR 2007"
var ns6switch=1
var ns6=document.getElementById&&!document.all
var mes=new Array();
mes[0]=-1;
mes[1]=-4;
mes[2]=-7;mes[3]=-10;
mes[4]=-7;
mes[5]=-4;
mes[6]=-1;
var num=0;
var num2=0;
var txt="";
function jump0(){
if (ns6&&!ns6switch){
jump.innerHTML=message
return
}
if(message.length > 6){
for(i=0; i != message.length;i++){
txt=txt+"<span style='position:relative;' id='n"+i+"'>"+message.charAt(i)+"</span>"};
jump.innerHTML=txt;
txt="";
jump1a()
}
else{
alert("Your message is to short")
}
}

function jump1a(){
nfinal=(document.getElementById)? document.getElementById("n0") : document.all.n0
nfinal.style.left=-num2;
if(num2 != 9){
num2=num2+3;
setTimeout("jump1a()",50)
}
else{
jump1b()
}
}

function jump1b(){
nfinal.style.left=-num2;
if(num2 != 0){num2=num2-3;
setTimeout("jump1b()",50)
}
else{
jump2()
}
}

function jump2(){
txt="";
for(i=0;i != message.length;i++){
if(i+num > -1 && i+num < 7){
txt=txt+"<span style='position:relative;top:"+mes[i+num]+"'>"+message.charAt(i)+"</span>"
}
else{txt=txt+"<span>"+message.charAt(i)+"</span>"}
}
jump.innerHTML=txt;
txt="";
if(num != (-message.length)){
num--;
setTimeout("jump2()",50)}
else{num=0;
setTimeout("jump0()",50)}}

// Fn to print message
function TopMessage(){
    if (document.all||document.getElementById){
    jump=(document.getElementById)? document.getElementById("jumpx") : document.all.jumpx
    jump0()
    }
    else
    document.write(message)
    }
// - End of Top Message Line Script - 

// Begining of script for Google Analytics. Suggested by Mr. Narendaran Pratap
function GoogleAnalytics(){
_uacct = "UA-1113196-1";
urchinTracker();}
// End of script for Google Analytics.

