function couponpopupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,left=150')
}


var a=1;
var tab1;
var tab2;
var brands;
var category;
function click1(){	
  tab1 = document.getElementById('tab1');
  tab2 = document.getElementById('tab2');
  brands = document.getElementById('brands');
  category = document.getElementById('category');
	tab1.style.background="url(images/tab1a.jpg)";
	category.style.display="block";
	tab2.style.background="url(images/tab2.jpg)";  
	brands.style.display="none";
	tab1.style.cursor="default"; tab1.style.cursor="default";
	tab2.style.cursor="hand"; tab2.style.cursor="pointer";
	a=2;
}
function click2(){
  tab1 = document.getElementById('tab1');
  tab2 = document.getElementById('tab2');
  brands = document.getElementById('brands');
  category = document.getElementById('category');

	tab2.style.background="url(images/tab2a.jpg)";
	brands.style.display="block";
	tab1.style.background="url(images/tab1.jpg)";  
	category.style.display="none";
	tab1.style.cursor="hand"; tab1.style.cursor="pointer";
	tab2.style.cursor="default"; tab2.style.cursor="default";
	a=2;
}
function on1(){	
  tab1 = document.getElementById('tab1');
  tab2 = document.getElementById('tab2');

//	tab1.style.background="url(images/tabactiv.gif)"; 
	if (a==1) {tab2.style.cursor="hand"; tab2.style.cursor="pointer";}
}
function on2(){
  tab1 = document.getElementById('tab1');
  tab2 = document.getElementById('tab2');

//	headTab2.style.background="url(images/tabactiv.gif)"; 
	if (a==1) {tab2.style.cursor="hand"; tab2.style.cursor="pointer";}
}
function out1(){
	if (a==2){
//		tab1.style.background="url(images/tab.gif)";
	}
}
function out2(){
	if (a==1){
//		tab2.style.background="url(images/tab.gif)";
	}
}
function on(a){	
	if (a==1) {document.getElementById('menu1').style.display="block";}
	if (a==2) {document.getElementById('menu2').style.display="block";}
	if (a==3) {document.getElementById('menu3').style.display="block";}
	if (a==4) {document.getElementById('menu4').style.display="block";}
}
function out(a){	
	if (a==1) {document.getElementById('menu1').style.display="none";}
	if (a==2) {document.getElementById('menu2').style.display="none";}
	if (a==3) {document.getElementById('menu3').style.display="none";}
	if (a==4) {document.getElementById('menu4').style.display="none";}
}

function clickn(a){
	for (i=1;i<=20;i++){
    var cObj = document.getElementById("tab_"+i);
    if (cObj != null && cObj != undefined){
  		document.getElementById("tab_"+i).style.display="none";
  		document.getElementById("tab"+i+"HeadLeft").style.background="url(images/tab/tabheadleft.gif) bottom no-repeat";
  		document.getElementById("tab"+i+"Head").style.background="#ff7500 url(images/tab/tabhead.gif) bottom repeat-x";
  		document.getElementById("tab"+i+"HeadRight").style.background="url(images/tab/tabheadright.gif) bottom no-repeat";
  		document.getElementById("tab"+i+"Head").style.cursor="hand";
  		document.getElementById("tab"+i+"Head").style.cursor="pointer";
  		if (a==i) {
  			document.getElementById("tab_"+i).style.display="block";
  			document.getElementById("tab"+i+"HeadLeft").style.background="url(images/tab/tabheadlefta.gif) bottom no-repeat";
  			document.getElementById("tab"+i+"Head").style.background="#316496 url(images/tab/tabheada.gif) bottom repeat-x";
  			document.getElementById("tab"+i+"HeadRight").style.background="url(images/tab/tabheadrighta.gif) bottom no-repeat";
  			document.getElementById("tab"+i+"Head").style.cursor="default";
  		}
    }
	}
}

function switchMenu(obj) {
var el = document.getElementById(obj);
if ( el.style.display != 'none' ) {
el.style.display = 'none';
}
else {
el.style.display = '';
}
}
