//SCHNEIDER JS APR07

//menu show and hide and delay
function localiser(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=localiser(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function afficher_cacher() { //v6.0
  var i,p,v,obj,bc,bg,args=afficher_cacher.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=localiser(args[i]))!=null) { v=args[i+2];
		//alert (i+' '+p+' '+v+' '+obj+' '+args);
		//alert (v+' '+args[i]);
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
				if(v=='visible'){bc='url(/Front/images/tic_menu_over.gif)'; bg="#6F6F6F";}else{bc='url(/Front/images/tic_menu.gif)'; bg="#009A3A";}
				//alert (bc+' '+v);
			 document.getElementById('link'+args[i]).style.backgroundImage= bc;
				document.getElementById('td'+args[i]).style.backgroundColor= bg;
				//obj.backgroundImage= bc;
    obj.visibility=v; }
		
}

function cacher() {
	tempo=false;
	afficher_cacher('solutions','','hide','products','','hide','support','','hide','customers','','hide','brands','','hide');
}

function afficher(id) {
	tempo=false;
	cacher();
	afficher_cacher(id,'','show');
}

function delai() {
	if (tempo) {
		//OutAll();
		cacher();
		tempo=false;
	}
}
// Flash Embed ½ºÅ©¸³Æ® -- Å¾¸Þ´ºÀÇ ·¹ÀÌ¾î°¡ ÇÃ·¹½¬ À§·Î ¿Ã¶ó¿Àµµ·Ï ÇÃ·¹½¬¸¦ ºÒ·¯µéÀÓ.
function Penta_swf2(src, w, h) {
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name=wmode value=opaque>';
//	html += '<param name=bgcolor value=#000000>';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

// flash embed ( id Æ÷ÇÔ)
function Penta_swf3(src, w, h, objID) {
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="'+objID+'" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name=wmode value=opaque>';
//	html += '<param name=bgcolor value=#000000>';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="'+objID+'" name="'+objID+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}