if (document.images)
   {
     nav1on= new Image(147,46);
     nav1on.src="images/nav-about-over.gif";  
     nav1off= new Image(147,46);
     nav1off.src="images/nav-about.gif";
	 
	 nav2on= new Image(130,46);
     nav2on.src="images/nav-collection-over.gif";  
     nav2off= new Image(130,46);
     nav2off.src="images/nav-collection.gif";
	 
	 nav3on= new Image(107,92);
     nav3on.src="images/nav-buy-over.gif";  
     nav3off= new Image(107,92);
     nav3off.src="images/nav-buy.gif";
	 
	 nav4on= new Image(110,46);
     nav4on.src="images/nav-shows-over.gif";  
     nav4off= new Image(110,46);
     nav4off.src="images/nav-shows.gif";
	 
	 nav5on= new Image(112,46);
     nav5on.src="images/nav-contact-over.gif";  
     nav5off= new Image(112,46);
     nav5off.src="images/nav-contact.gif";
	 
	 nav6on= new Image(21,48);
     nav6on.src="/IMAGES/radio-wave-over.gif";  
     nav6off= new Image(21,48);
     nav6off.src="/IMAGES/radio-wave.gif";
	 
	 nav7on= new Image(138,14);
     nav7on.src="/IMAGES/sign-up-over.gif";  
     nav7off= new Image(138,14);
     nav7off.src="/IMAGES/sign-up.gif";
	 
   }
   
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }
 
 function hideLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "hidden";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "visible";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "visible";
}

}

function handleClick(whichClick,theLayer) {

if (whichClick == "hide it") {
// then the user wants to hide the layer
hideLayer(theLayer);

}
else if (whichClick == "show it") {
// then the user wants to show the layer
showLayer(theLayer);
}

}


function  checkForm(this_form){
    if  (!hasValue(this_form.first_name, "TEXT" )) {
                if  (!putMessage("Please enter your first name")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.last_name, "TEXT" )) {
                if  (!putMessage("Please enter your last name")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.address, "TEXT" )) {
                if  (!putMessage("Please enter your street address")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.city, "TEXT" )) {
                if  (!putMessage("Please enter your city")){
                        return false; 
                }
        }
    if  (!hasValue(this_form.state, "TEXT" )) {
                if  (!putMessage("Please enter your state")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.zip, "TEXT" )) {
                if  (!putMessage("Please enter your zip")){
                        return false; 
                }
        }
    if  (!hasValue(this_form.email, "TEXT" )) {
                if  (!putMessage("Please enter your email address")){
                        return false; 
                }
        } else {
                if (!checkEmail(this_form.email)){
                        if  (!putMessage("Please enter valid email address")){
                                return false; 
                        }
                }
        }
	if  (!hasValue(this_form.hylou, "TEXT" )) {
                if  (!putMessage("Please enter how you learned of us")){
                        return false; 
                }
        }
	
    
	
        
        return true;    
}

function  checkForm2(this_form){
	if  (!hasValue(this_form.company_name, "TEXT" )) {
                if  (!putMessage("Please enter your company name")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.title, "TEXT" )) {
                if  (!putMessage("Please enter your title")){
                        return false; 
                }
        }
    if  (!hasValue(this_form.first_name, "TEXT" )) {
                if  (!putMessage("Please enter your first name")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.last_name, "TEXT" )) {
                if  (!putMessage("Please enter your last name")){
                        return false; 
                }
        }
	
    if  (!hasValue(this_form.main_phone, "TEXT" )) {
                if  (!putMessage("Please enter your main phone")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.direct_line, "TEXT" )) {
                if  (!putMessage("Please enter your direct line")){
                        return false; 
                }
        }
    if  (!hasValue(this_form.email, "TEXT" )) {
                if  (!putMessage("Please enter your email address")){
                        return false; 
                }
        } else {
                if (!checkEmail(this_form.email)){
                        if  (!putMessage("Please enter valid email address")){
                                return false; 
                        }
                }
        }

	if  (!hasValue(this_form.hylou, "TEXT" )) {
                if  (!putMessage("Please enter how you learned of us")){
                        return false; 
                }
        } 

	
    
	
        
        return true;    
}

function  checkForm3(this_form){

    if  (!hasValue(this_form.firstName, "TEXT" )) {
                if  (!putMessage("Please enter your first name")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.lastName, "TEXT" )) {
                if  (!putMessage("Please enter your last name")){
                        return false; 
                }
        }
	
    if  (!hasValue(this_form.address, "TEXT" )) {
                if  (!putMessage("Please enter your address")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.city, "TEXT" )) {
                if  (!putMessage("Please enter your city")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.zip, "TEXT" )) {
                if  (!putMessage("Please enter your zip")){
                        return false; 
                }
        }
    if  (!hasValue(this_form.email, "TEXT" )) {
                if  (!putMessage("Please enter your email address")){
                        return false; 
                }
        } else {
                if (!checkEmail(this_form.email)){
                        if  (!putMessage("Please enter valid email address")){
                                return false; 
                        }
                }
        }
	if  (!hasValue(this_form.phone, "TEXT" )) {
                if  (!putMessage("Please enter your phone number")){
                        return false; 
                }
        }
	
	
    
	
        
        return true;    
}

function  checkForm4(this_form){

    if  (!hasValue(this_form.firstName, "TEXT" )) {
                if  (!putMessage("Please enter your first name")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.lastName, "TEXT" )) {
                if  (!putMessage("Please enter your last name")){
                        return false; 
                }
        }
	
    if  (!hasValue(this_form.address, "TEXT" )) {
                if  (!putMessage("Please enter your address")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.city, "TEXT" )) {
                if  (!putMessage("Please enter your city")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.zip, "TEXT" )) {
                if  (!putMessage("Please enter your zip")){
                        return false; 
                }
        }
    
	
        
        return true;    
}

function  checkForm5(this_form){

    if  (!hasValue(this_form.cardNumber, "TEXT" )) {
                if  (!putMessage("Please enter your credit card number")){
                        return false; 
                }
        }
	if  (!hasValue(this_form.cardCode, "TEXT" )) {
                if  (!putMessage("Please enter your CVS code")){
                        return false; 
                }
        }
    
	
        
        return true;    
}


function putMessage(error_message){
        alert(error_message);
        return false;   
}

function checkEmail(email){
        var email_string = email.value; 
        var at_position = email_string.indexOf('@'); 
        var dot_position = email_string.indexOf('.', at_position); 
        var extension = email_string.substring(dot_position+1,email_string.length); 
        
        if(at_position<0){
                return false; 
        } else if (dot_position<0){
                return false; 
        } else if (extension.length<=0){
                return false; 
        } 
        return true; 
}

function hasValue(obj, obj_type){
    if (obj_type == "TEXT" || obj_type == "PASSWORD"){
        if (obj.value.length == 0) 
                return false;
        else 
                return true;
    } else if (obj_type == "SINGLE_VALUE_RADIO" || obj_type == "SINGLE_VALUE_CHECKBOX") {
                if (obj.checked)
                        return true;
                else
                return false;   
        } else if (obj_type == "RADIO" || obj_type == "CHECKBOX") {
                for (i=0; i < obj.length; i++){
                        if (obj[i].checked)
                                return true;
                }
                return false;   
        } else  if (obj_type == "SELECT") {
                if (obj.selectedIndex == 0)
                        return false;
                else
                        return true;
        }
}

function hasValue2(obj1, obj2, obj3, obj4, obj5, obj6){
        var flag = 0;
        for (i=1; i < 7; i++){
                if (obj[i].checked)
                        flag = i;
                }
        if (flag == 0)
                return false;
        else
                return true;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function loadBanner(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=4;	/* Aumenta la velocita' */
        Timer();

}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
		if (i < 4){
			i++;
			document.banner.src = eval("banner" + i + ".src");
		}
		else{
			i = 1;
			document.banner.src = eval("banner" + i + ".src");
		}
		loadBanner();
	}
        else{
                window.setTimeout("Timer()",1000)}

}

function clickLink(){
	top.location = links[i]
}

function clickLink2(){
	window.open(links[i])
}


function descript(){
	window.status = description[i]
}

function nothing() {
	window.status=""
}