//paly video (from:header)
function PlayVideo(ThePage){
ThePage= 
window.open(ThePage ,'popup','width=475,height=375');
}
	
//sign up email	(from:header)					
function SignupforEmail(){
ThePage= '../SignUpEmail.asp'
window.open(ThePage ,'popup','width=430,height=430');
}

//eamil to Corporate  (from:header)
function SendEmailToCorporate(){
ThePage= '../SendEmailToCorporate.asp'
window.open(ThePage ,'popup','width=500,height=500');
}


//shipping  (from:header)
function Shipping(ThePage){
  ThePage= 
  window.open(ThePage ,'popup','width=510,height=545,scrollbars=yes');
  }

 
//SendEmai	(from:product)	
function SendEmail(Product_Id,mastercategory_id){
ThePage= 'SendEmail.Asp?Product_Id=' + Product_Id + '&MasterCategory_id=' + mastercategory_id
window.open(ThePage ,'popup','width=640,height=600,scrollbars=yes');
//window.open(ThePage ,'popup','width=700,height=800,scrollbars=yes');
}
  
  
//image over out (from:header) ---------
self.name = "main";
IMAGE01 = "/images/site/on.gif"
IMAGE02 = "/images/site/off.gif"
function checkVersion(){
  if (navigator.appVersion.charAt(0)>=3)
  {
    return true;
  }
  else
  {
    return false;
  }
}

function imgover(imgname){
imgname.src = IMAGE01
}

function imgout(imgname){
imgname.src = IMAGE02
}

function Switch(location, image) {
document[location].src=image;
}

// popup window  (from :header) ------
var popupWin;
function openPopUpWindow(URL,name,attrib) {
    popupWin = window.open(URL,name,attrib);
    popupWin.focus();
}


//---fram blow out  (from :header) ------
if (self != top) top.location.href = window.location.href;



//---Email Comments  (from :header) ------

var noPopFlag = false;
var SurveyPage = "/EmailComments.asp";
var allcookies = document.cookie;
var stopFlag = allcookies.indexOf("exitpop=");

function launchSurvey()
{
  var ext = "";
  ext = window.open(SurveyPage,"ext","toolbar=no,menubar=no,status=no,directories=no,location=no,scrollbars=no,resizable=no,width=525,height=500");
  //self.focus(); 
}


//---onunload(from :home) ------
//onunload = launchSurvey;
