<!--
var smartWindow; //must be global
function openSmart(url, width, height, scr){
var scroll;
var scrnwidth=screen.width;
var scrnheight=screen.height;
if(height>(scrnheight-60)){
height=scrnheight-60;
scroll="yes";
}
else{
scroll="auto";
}
if(!scr){
scroll="yes";
}
xspot=Math.round((scrnwidth/2)-(width/2));
yspot=Math.round((scrnheight/2)-(height/2));
features="height="+height+",width="+width+",top="+yspot+",screenY="+yspot+",left="+xspot+",screenX="+xspot;
features+=",scrollbars="+scroll+",resizable=0,toolbar=0,location=0,directories=0,status=0";
	if (!smartWindow || smartWindow.closed) {
		smartWindow = window.open(url, "", features);
	} else {
	if (smartWindow && smartWindow.open) {
		smartWindow.close();
		smartWindow = window.open(url, "", features);
	} else {
		smartWindow.focus();
	}
	}
}

function closeSmart() {
	if (smartWindow && smartWindow.open) {
		smartWindow.close();
		}
}


function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_showHideLayers() { //v2.0
  var i, visStr, args, theObj;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (theObj) theObj.visibility = visStr;
    } else if (document.all != null) { //IE
if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) theObj.style.visibility = visStr;
  } }
}

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImage() { //v2.0

  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; 
  //used for restore
}

function MM_displayStatusMsg(msgStr) { //v2.0
  msgStr = msgStr.replace(/'/g,"\\'");  //This code takes care of the single quote
  setTimeout("status='" + msgStr + "'", 50);
  document.MM_returnValue = true;
}

function flashwin(newPage)
{
plat = ((navigator.platform.indexOf('Win') > -1) ? "win" : "mac");
browse = navigator.appName;
var version = navigator.appVersion;

if (plat=='mac')
 {
  if (browse == 'Microsoft Internet Explorer')
   {
    if (navigator.appVersion.indexOf('5.0') > -1)
     {window.open(newPage,'movie','toolbar=no,location=no,width=766,height=527')}
     else if (navigator.appVersion.indexOf('4.5') > -1)
     {window.open(newPage,'movie','toolbar=no,location=no,width=790,height=532')}
   }
 }
else {window.open(newPage,'movie','toolbar=no,location=no,width=780,height=542')}
}

function CallCatalog() {
  return 'http://catalog.gelighting.com/cgi-bin/gx.cgi/AppLogic+FTContentServer?pagename=GE_Lighting/Catalog/Production_www/home';
}

function CallCatalogPlus(theRest) {
  window.open('http://catalog.gelighting.com/cgi-bin/gx.cgi/AppLogic+FTContentServer?pagename=GE_Lighting/Catalog/Production_www/home' + theRest, '_self') ;
}
function SearchCatalog(theRest)
 {
   if (theRest=="")
      { window.open('http://catalog.gelighting.com/cgi-bin/gx.cgi/AppLogic+FTContentServer?pagename=GE_Lighting/Catalog/Production_www/search', '_self') ;}
   else{
  window.open('http://catalog.gelighting.com/cgi-bin/gx.cgi/AppLogic+FTContentServer?pagename=GE_Lighting/Catalog/Production_www/search' + theRest, '_self') ;}
}
function spygroup(registrationform)
  {window.open("http://www.spigroup.com/GEForm/OptInForm.asp", "GELighting", "toolbar=yes, location=yes,menubar=yes,scrollbars=yes,resizable=yes,width=450,height=450");}
function LoadPage(url){
window.open(url,'literature', 'width=765,height=575,status=yes,resizable=no,scrollbars=yes,menubar=no, toolbar=no','true');
}


function loadwizard(wizardname, option){

if (wizardname == "productoptimizer")
{window.open('/na/wizard/optimizer/','','width=733,status=yes,resizable=yes,scrollbars=yes','true');   } 

else if (wizardname == "energyoptimizer")
{window.open('/na/wizard/energyoptimizer/','','width=733,status=yes,resizable=yes,scrollbars=yes','true');   } 

else if (wizardname == "consumerauditor")
{window.open('http://www.gelighting.com/gelauditor/consumer/','ConsumerAuditor');   } 

else if (wizardname == "schoolauditor")
{window.open('http://www.gelighting.com/gelauditor/school/','SchoolAuditor');   } 
else if (wizardname == "commercialauditor")
{window.open('http://www.gelighting.com/gelauditor/commercial/','CommercialAuditor');   } 

else if (wizardname == "energyoptimizereu") 
{ if ( document.all ) 
window.open('/es/resources/solutions_advisor/wizard/energyoptimiser','','width=733,status=yes,resizable=yes,scrollbars=yes','true'); 
  else 
   window.open('/es/resources/solutions_advisor/wizard/energyoptimiser','','width=733,status=yes,resizable=no,scrollbars=yes','true'); }


else if (wizardname == "energyoptimizerapo")
{window.open('/apo/wizard/energyoptimiser/','','width=733,status=yes,resizable=yes,scrollbars=yes','true');   } 

else if (wizardname == "productoptimizereu")
{window.open('/es/resources/solutions_advisor/wizard/productoptimiser','','width=733,status=yes,resizable=yes,scrollbars=yes','true');   } 

else if (wizardname == "productoptimizerapo")
{window.open('/es/wizard/productoptimiser/','','width=733,status=yes,resizable=yes,scrollbars=yes','true');   } 

else if (wizardname == "virtualdesignereu")
{//window.open('/es/wizard/virtualdesigner/index.html?init=' + option.substring(1),'','width=710, height=550,status=yes,resizable=no, menubar=no, toolbar=no, scrollbars=no','true');  
window.open('/es/resources/solutions_advisor/wizard/virtualdesigner/index.html?init=' + option.substring(1),'','width=765,height=575,status=yes,resizable=no,scrollbars=no,menubar=no, toolbar=no,screenX=50,screenY=100,top=100,left=50','true'); 
}   

else if (wizardname == "virtualdesignerapo")
{//window.open('/es/wizard/virtualdesigner/index.html?init=' + option.substring(1),'','width=710, height=550,status=yes,resizable=no, menubar=no, toolbar=no, scrollbars=no','true'); 
window.open('/apo/wizard/virtualdesigner/index.html?init=' + option.substring(1),'','width=765,height=575,status=yes,resizable=no,scrollbars=no,menubar=no, toolbar=no,screenX=50,screenY=100,top=100,left=50','true');
}   

else if (wizardname == "virtualdesigner")
{
//window.open('/na/wizard/virtualdesigner/index.html' + option,'','width=710, height=550,status=yes,resizable=no, menubar=no, toolbar=no, scrollbars=no','true');
window.open('/na/wizard/virtualdesigner/index.html?init=' + option.substring(1),'', 'width=765,height=575,status=yes,resizable=no,scrollbars=no,menubar=no, toolbar=no,screenX=50,screenY=100,top=100,left=50','true');
  }   
else if (wizardname == "automotive")
{window.open("http://catalog.gelighting.com/cgi-bin/gx.cgi/AppLogic+FTContentServer?pagename=GE_Lighting/Wizards/Automotive/intro","auto",'width=426,height=392,screenX=20,screenY=20,top=20,left=20');  }

else if (wizardname == "lampballast")
{window.open('/na/wizard/lampballast/home.htm','Lamp_Ballast', 'width=865,height=575,status=yes,resizable=no,scrollbars=yes,screenX=25,screenY=5,top=5,left=25','true');}


}//end of function

function loadvh(roomname)
{ if (roomname == "")
 {window.open('/na/virtualhouse/index.html','virtualhouse');}
  else
{window.open('/na/virtualhouse/'+roomname,'virtualhouse');}
}

function load(site){
if ( site == 'engyeff' )
  window.open("http://www.energyusernews.com/CDA/ArticleInformation/features/BNP__Features__Item/0,2584,74433,00.html","engyeff");


}

function confirmsite(url)  //spanish site
{ if (confirm("Ahora va a entrar en la p&aacute;gina de Lighting Europa. El contenido que aparecer&aacute; a continuacion est&aacute; en ingl&eacute;s. Clic OK para continuar o Cancel para permanecer en esta p&aacute;gina."))
   { window.open(url,'newwindow') }
}
function confirmsiteit(url)  //italian site
{ if (confirm("Stai lasciando il sito GELighting in italiano. Il seguente sito &eacute; in Inglese, clicca OK se vuoi continuare, altrimenti clicca su Cancel per rimanere nel sito in Italiano."))
   { window.open(url,'newwindow') }
}

function confirmsitese(url) //swedish site
{ if (confirm("Den här länken går till GELighting europa som är på engelska Klicka på OK för att fortsätta eller cancel för att stanna kvar på GELighting Svenska"))
   { window.open(url,'newwindow') }
}

function confirmsitehl(url) //dutch site
{ if (confirm("Den här länken går till GELighting europa som är på engelska Klicka på OK för att fortsätta eller cancel för att stanna kvar på GELighting Svenska"))
   { window.open(url,'newwindow') }
}

function confirmsitefr(url) //french site 
{ if (confirm("Maintenant vous quittez le site Français, le texte est en Anglais. Cliquez OK pour continuer ou  Cancel pour rester sur cette page."))
   { window.open(url,'newwindow') }
}

function confirmsitede(url) // German site
{ if (confirm("Hier kommen Sie auf die Internetseiten von Lighting Europe. Folgende Seiten sind derzeit nur in Englisch verf&uuml;gbar."))
   { window.open(url,'newwindow') }
}


function LitLibOpenWindow(url,filetype,width,height)
{

   if ( filetype == "html" )
      window.open(url, 'litlib','width=765,height=500,status=yes,resizable=0,noresize,scrollbars=yes,menubar=no, toolbar=no','true');

	else if ( filetype == "pdf" )
	  window.open(url,'pdf','width=800,height=575,status=yes,resizable=yes,scrollbars=yes,menubar=yes, toolbar=yes,location=yes');
		else if ( filetype == "swf" )
			{

				//Code added on 06/28/01 to take care of the cartoon flash file
				
				if ( url == "/na/newsletter/movies/animation.swf" )
				   window.open('/na/newsletter/movies/default.html', 'litlib','width=665,height=450,status=yes,resizable=0,noresize,scrollbars=yes,menubar=no, toolbar=no','true');
				
				  else
				  {

						var flash;

						flash = '<html><head><title>Flash Video</title></head><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" standby="Please wait, loading Macromedia Flash player..."	id="T5 promo" width="'+ width +'" height="'+ height +'" play="true">'+
							'<param name="movie" value="'+ url +'" />'+
							'<param name="quality" value="high" />'+
							'<param name="bgcolor" value="#FFFFFF" />'+
							'<embed src="'+  url +'" quality="high" bgcolor="#FFFFFF" width="'+ width +'" height="'+ height +'" play="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'+
							'</embed>'+
							'</object></body></html>';


					  movie = window.open('/na/litlib/movie.html','movie','width='+width+',height='+height+',status=yes,resizable=0,noresize,scrollbars=no,menubar=no, toolbar=no','true');

					  movie.document.open('text/html','replace');
					  movie.document.writeln(flash);
					  movie.document.close();
					  }

			  
			  
			  }
}//end function

function opencowcalc(cow)
{
      window.open('/na/wizard/cow/index.html','cow', 'width=727,height=487,status=yes,resizable=no,scrollbars=no,menubar=no, toolbar=no,screenX=50,screenY=100,top=100,left=50','true');
}

function openseecalc(see)
{
      window.open('/na/wizard/see/index.html','see', 'width=727,height=607,status=yes,resizable=no,scrollbars=no,menubar=no, toolbar=no,screenX=50,screenY=100,top=100,left=50','true');
}

function opentoolkit(){
	window.open('/na/wizard/toolkit/toolkit.html','toolkit', 'width=605,height=550,status=no,resizable=yes,scrollbars=yes,menubar=no, toolbar=no,screenX=100,screenY=0,top=0,left=100','true');
}

function openultramax(){
	window.open('/na/wizard/ultramax/index.html','ultramax', 'width=625,height=557,status=no,resizable=yes,scrollbars=auto,menubar=no, toolbar=no,screenX=100,screenY=0,top=0,left=100','true');
}

function regform() {
window.open('/na/institute/registration.html','GE_Lighting_Institute_Form','menubar,scrollbars,resizable=yes,height=550,width=750');
}


function openPDF(pdfFile)
{
      window.open(pdfFile, 'pdffile', 
            'location=no,menubar=no,status=no,directories=no');
}

function openSavers(newUrl)
{      
 aPopup = window.open(newUrl,'windowName','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=250');
}

function openWindow(newUrl)

{        aPopup = window.open(newUrl,'windowName','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=375');

}

function openWindowScrollable(newUrl)

{        aPopup = window.open(newUrl,'windowName','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=700,height=575');

}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function NewWindow(theURL) { //v2.0
  window.open(theURL,'winName','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,resizable=yes,menubar=yes');
}

function NewWin(width,height,img,text)
{

      var w = window.open("","errors","width="+width+",height="+height+",status=yes,resizable=yes,scrollbars=yes","true");
      w.focus();
	  w.document.open();
	  w.document.writeln("<HTML><head><title>Lighting</title></head>");
	  w.document.writeln("<BODY bgcolor='#000000' marginheight='0' marginwidth='0' leftmargin='0' topmargin='0'>");
	  w.document.writeln("<table cellpadding='0' cellspacing='0' border='0' align='center'>");
	  w.document.writeln("<tr><td align='center'><img align='absmiddle' src='"+ img +"' border='0'></td></tr>");
	  w.document.writeln("<tr><td align='center'><font size='2' color='#ffffff'>"+ text +"</font></td></tr>");
	  w.document.writeln("</table></BODY></HTML>");
	  w.document.close();
	  return;

}

function fnCheckCookiesCon(thisform)
{
	var SelText = document.cookie;
	var LastInd = SelText.lastIndexOf("consumer_email=");

	if(LastInd != -1)
	{
		MM_openBrWindow('/es/thelight/consumer_questions.htm','popup','width=300,height=400')

	}
	else
	{
		MM_openBrWindow('/es/thelight/consumer_1stscreen.html','popup','width=300,height=450')


	}
}

function fnCheckCookiesBus()
{
	var SelText = document.cookie;
	var LastInd = SelText.lastIndexOf("business_email=");


	if(LastInd != "-1")
	{
				MM_openBrWindow('/es/thelight/business_questions.htm','popup','width=350,height=400')

	}
	else
	{
				MM_openBrWindow('/es/thelight/business_1stscreen.html','popup','width=300,height=475')

	}
}

// end of e-promo Europe

//New function for Splash Pages.
function showPopup(){

var feedbackVisit = new String(getCookie('feedback'));

if (feedbackVisit=="null")
  setCookie('feedback',0);

else if (feedbackVisit!="011" && feedbackVisit.length < 4)
  setCookie('feedback',feedbackVisit+1);


if (getCookie('feedback')=="01")
  window.open('/na/home/popup.html','popup','toolbar=no,location=no,width=735,height=600,left=175,top=75,screenX=200,screenY=50,scrollbars');
}
//-->