 $(document).ready(function(){
      
		$('.addtoproject').click(function(){
			
			var page= $(this).attr('href');
			$('#addeddiv').load(page);
			return false;
		});
		
		$('a.menu-cluetip').cluetip({
					width:'200', 
					arrows:true, 
					cursor: 'pointer', 
					sticky: true,
					cluetipClass:'jtip'
					
		});
  });

// Browser sniff with object function
    function hideShowlayer(hidelayer,hideanother,showlayer){
    if(document.getElementById){
   	document.getElementById(hidelayer).style.visibility="hidden";
  	document.getElementById(hideanother).style.visibility="hidden";
  	document.getElementById(showlayer).style.visibility="visible";
   	}
    else if(document.all){
     document.all[hidelayer].style.visibility="hidden";
      document.all[hideanother].style.visibility="hidden";
     document.all[showlayer].style.visibility="visible";
	}   
	else return false;
	}

   function hideShowBorder(hideborder,showborder,showanother){
    if(document.getElementById){
    document.getElementById(hideborder).style.borderBottomWidth="0px";
    document.getElementById(showborder).style.borderBottomWidth="1px";
  	document.getElementById(showanother).style.borderBottomWidth="1px";
   	}
  
  
   	else if(document.all){
     document.all[noborderlayer].style.borderBottomWidth="0px";
     document.all[borderlayer].style.borderBottomWidth="1px";
	}   
 else return false;
	}




 function ShowRequest(showlayer){
    if(document.getElementById){
 	 document.getElementById(showlayer).style.visibility="visible";
   	}
    else if(document.all){
      document.all[showlayer].style.visibility="visible";
	}   
	else return false;
}


var preloadFlag= false;
function preloadImages(){
if (document.images)
	{	
	DevoOn= new Image(98,60)
	DevoOn.src="images/transparent.gif";
	DevoOff= new Image(98,60)
	DevoOff.src="images/transparent.gif";
	preloadFlag= true;
	}
}
function ImgSwap(where, ImgObj){
if (document.images && (preloadFlag == true)){
document.images[where].src=eval(ImgObj + ".src");
}
}

function redirectNN4(){

if (document.layers) {
self.location.href="NN4_index.htm";
	}
}


function openWin(url) {
window.open(url,'','scrollbars,resizable,width=760,left=0,top=0');

}


function setAddr(link, fname, lname) 
{ 
  link.href = 'mailto:' + fname +'.'+ lname + '@usvinyl.com'; 
} 
 