/* begin toggle div tags  */

function toggleVisibility() {
  var inc, endInc=arguments.length;
  for (inc=0; inc<endInc; inc+=2) {
    var id = arguments[inc];
    if (arguments[inc+1] == 'hidden') param = "hidden";
    else if(arguments[inc+1]=='visible') param = "visible";
    if (document.layers) document.layers['container'].layers[id].visibility = param;
    else if (document.all) eval("document.all." + id + ".style.visibility = \"" + param + "\"");
    else if (document.getElementById) eval("document.getElementById(id).style.visibility = \"" + param + "\"");
  }
}

/* end toggle div tags */


function emailpopup(url,name) {
  popupwin = window.open(url, name, 'width=350,height=280');
}


/* begin popup window */
function opengraphwindow(url, name) {
  popupWin = window.open(url, name, 'width=780,height=545,left=20,top=20,resizable=0,scrollbars=0')
}

function openarchwindow(url, name) {
  popupWin = window.open(url, name, 'width=840,height=408,left=20,top=20,resizable=0,scrollbars=0')
}
/* end popup window */



function activateFlash(swfURL) {
	if ( plugin ) {   
				document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ID=FLASH_AD WIDTH=770 HEIGHT=291>');
			 	document.write('<PARAM NAME=movie VALUE="' + swfURL + '"> <PARAM NAME=quality VALUE=autohigh> <PARAM NAME=wmode VALUE=transparent><PARAM NAME="MENU" VALUE="false"><param name=FlashVars VALUE="learnURL=solutions/&telcoURL=solutions/telco/&cableURL=solutions/cable/">'); 
			 	document.write('<EMBED src="' + swfURL + '" FlashVars="learnURL=solutions/&telcoURL=solutions/telco/&cableURL=solutions/cable/" wmode="transparent" quality=autohigh swLiveConnect=FALSE WIDTH=770 HEIGHT=291 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" MENU="false"></EMBED>');
				document.write('</OBJECT>');
	}
	else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
		document.write('<img src="pics/home/static.jpg" alt="" border="0" />');
	}
}



function activateeventsFlash(swfURL) {
	if ( plugin ) {   
				document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ID=FLASH_AD WIDTH=559 HEIGHT=115>');
			 	document.write('<PARAM NAME=movie VALUE="' + swfURL + '"> <PARAM NAME=quality VALUE=autohigh> <PARAM NAME=wmode VALUE=transparent><PARAM NAME="MENU" VALUE="false"><param name=FlashVars VALUE="registerURL=solutions/products/livingroom.php">'); 
			 	document.write('<EMBED src="' + swfURL + '" FlashVars="registerURL=solutions/products/livingroom.php" wmode="transparent" quality=autohigh swLiveConnect=FALSE WIDTH=559 HEIGHT=115 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" MENU="false"></EMBED>');
				document.write('</OBJECT>');
	}
	else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
		document.write('You will need to download the latest flash player.');
	}
}

function openhtmlwindow(url, name) {
  popupWin = window.open(url, name, 'width=500,height=400,left=20,top=20,resizable=0,scrollbars=1')
}

function opennewwindow (url, name) {
     popupWin = window.open(url,name);
  }