/* 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')
}
/* 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="wmode" value="transparent"> <PARAM NAME=quality VALUE=autohigh> <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" />');
	}
}
