function popup(URL,title,features) {
	window.open(URL,title,features);
}
function gothere() {
    var index=document.myform.dest.selectedIndex;
    if (index !=0) {
    var remote=document.myform.dest.options[index].value.substring(0,1);
    var url=document.myform.dest.options[index].value.substring(1);
	if (remote == "a")
	window.open(url,"newwindow","toolbar=yes,location=yes,derectories=yes,status=yes,menubar=yes,scrollbar=yes,resizable=yes");
	else
	this.location=(url);
	} 
}
function preLoad(){
	var newPath="";
	var newImg="";
  if(document.images) {
    for(var i = 0; i < arguments.length; i++)  {
		if(arguments[i].indexOf("/")>-1){
			newPath = arguments[i].substring(0,arguments[i].indexOf("/"))
			arguments[i] = arguments[i].substring(arguments[i].indexOf("/")+1);
		}
      	var arg = arguments[i].split(".");
		imgPath = (newPath!="")?iPath+newPath+"/" + arg[0] + '.' + arg[1]:iPath+ arg[0] + '.' + arg[1];
        self[arg[0]] = new Image();
        self[arg[0]].src = imgPath;
		newPath=""
	}
  }
}
function flip() {
        if (document.images) {
                var num_arg = arguments.length;
                if (num_arg == 0 || (num_arg % 2) != 0) return;
                for (var i=0; i<num_arg; i) {
                        var j = i+1;
                        var imgname = arguments[i];
                        var imgsrc = arguments[j];
                        document.images[imgname].src = eval(imgsrc+'.src');
                        i+=2;
                }
        }
}
/* 	
writeFlash()
	Writes flash piece and non flash image.

	/index.htm
	/about_lg/index.htm
	/experience_lg/index.htm
	/products/c_products/index.html
	/products/mobile/index.htm
	/products/h_appliances/index.htm

	
*/
function writeFlash(swf,noFlash,bg,w,h){
	if ( shockver >= 4 ) {
	    flashcode = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		flashcode += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
		flashcode += ' ID=client WIDTH=';
		flashcode += w;
		flashcode += ' HEIGHT=';
		flashcode += h;
		flashcode += '>';
		flashcode += '  <PARAM NAME=movie VALUE="';
		flashcode += swf;
		flashcode += '"> ';
		flashcode += '  <PARAM NAME=loop VALUE=false> ';
		flashcode += '  <PARAM NAME=quality VALUE=high> ';
		flashcode += '  <PARAM NAME=bgcolor VALUE=#';
		flashcode += bg;
		flashcode += '> ';
		flashcode += '<EMBED src="';
		flashcode += swf;
		flashcode += '" swLiveConnect=FALSE WIDTH=';
		flashcode += w;
		flashcode += ' HEIGHT=';
		flashcode += h;
		flashcode += ' LOOP=false QUALITY=high BGCOLOR=#';
		flashcode += bg;
		flashcode += ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
		flashcode += '</EMBED>';
		flashcode += '</OBJECT>'; 
	}
	else {
		flashcode = '<img src="';
		flashcode += noFlash;
		flashcode += '" alt="" width="';
		flashcode += w;
		flashcode += '" height="';
		flashcode += h;
		flashcode += '" border="0">';
	}
	document.write(flashcode);

}

/* FlashDetect  */
var shockver = 0;
var flashcode = "";
var FlashMode3 = 0;
var FlashMode4 = 0;
var FlashMode5 = 0;
var FlashMode6 = 0;


/* navigator -- Required */
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	if ( parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) == 3 ) shockver = 3;
	if ( parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4 ) shockver = 4;
	if ( parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) == 5 ) shockver = 5;
	if ( parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6 ) shockver = 6;
}

/* ie -- Required */
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows")>=0 && navigator.userAgent.indexOf("3.1")<0)) {
	document.write('\<script language=\"VBScript\"\> \n');
    document.write('on error resume next \n');
	document.write('FlashMode3 = 0 \n');
	document.write('FlashMode4 = 0 \n');
	document.write('FlashMode5 = 0 \n');
	document.write('FlashMode6 = 0 \n');
	document.write('FlashMode3 = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")) \n');
	document.write('FlashMode4 = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")) \n');
	document.write('FlashMode5 = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")) \n');
	document.write('FlashMode6 = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")) \n');
    document.write('\<\/SCRIPT\> \n');
	
	if (FlashMode3) shockver = 3;
	if (FlashMode4) shockver = 4;
	if (FlashMode5) shockver = 5;
	if (FlashMode6) shockver = 6;
}

var iPath = 'images/';


preLoad('common_nav1.gif','common_nav1_on.gif','common_nav2.gif','common_nav2_on.gif','common_nav3.gif','common_nav3_on.gif','common_nav4.gif','common_nav4_on.gif','common_nav5.gif','common_nav5_on.gif','common_nav6.gif','common_nav6_on.gif','common_bullet_nav.gif','onepx.gif');

