//** DOCUMENT **//
//===================================
// DHTML - MENU
// POPUP - IMAGE
// POPUP - WINDOW
// POPUP - FLASH
// FLASH PLUGIN
// DETECT BROWSER
// Display PNG
//===================================
//===================================
//
//==================================================================
//DHTML MENU
//------------------------------------------------------------------
function qm_create(){}_1="vbr!qn_ti-qn_mi-qn_mo-qn_ut-qn_uh-qn_us<vbr!qq=#pbrfnuNpdf\"<vbr!qd=#cmatsOane#;<fvndtjoo rm`csebtf(td-v-tt,uh-od,m)|vbr!w>\"pnnovsfowes\"<ig(pc*{x=#oocmidk#;uh>0<tt=1;~ig(\"l*{m=2;rm`tt=us<qn_uh>ti;td>dpcvmfnu.heuEmeneotCyJd)\"rm#+td*;td/oomputepvfr>fvndtjoo(f)|x7(f)~;eoduneot\\w^=y2<se.ttzlf.{opm>1<}td/suyme/zJneey=m;was msq;was tp>se.dhjleNpdfs<fpr)vbr!i>0<i=sq.meoguh<i,+*{was c=tp\\i^;jf)b/tbgOane>=#A#)|ltp>b<b\\w^=y0<ig(m=>1'&w)|b/suyme/suymeGlpau=#npnf\"<b/suyme/ctsGlpau=#npnf\"<}~ig(c.uahNbmf=>\"EIW\"*{jf)wjneox.thpwIemp'&\"wjneox.YMMHutqRfqvett*sq[j]/iosfruAejbcfnuHUMM(#agtfrCehio\"-\"=sqao ttzlf=(djsqlby;bmodk<fpnu-ti{e;1qx<hfihhu:1py;xieti:1py;mioe.hfihhu:1py;witicimiuy;hjdeeo;(>=/tpbn?\"*;y5)\"rmqaseot#,msq,2)<ltp/ceiw=c;c.jdjv>ltp<nfw!qn_drfaue)b-nvlm,us-ti,pc-l,1*;~}~;guocuipn!x3(f)|cmebrUinepuu(rm`tu)<qn_ut>nvlm;jf)qn_mi'&\"qn_ut*qn_ut>sftUinepuu(#x4(*\"-qn_uh*;~;guocuipn!x4(*{was b;jf)(b=rm`lj)*{eo|x2(b)<}xhjlf()a>a\\qq]*&'!rm`a)a*)~qn_mi>nvlm;~;guocuipn!qn_b(b)|ig(b[rc^.jneeyOg(#qnmd\"*+2)seuusn!1<}<fvndtjoo y1)a*{jf)wjneox.rmbd'&rmbd/biiee*ewam(rmbd/biiee*;b.ttzlf.witicimiuy>\"#;y5)\"rmbcuiwe#,b.jdjv*;~ig(xiodpw/sioxHflq&'!xiodpw/qnu'&)wjneox.modauipn,\"#)/tpLpwfrDate))/iodfxPf)\"itup;\"*+2)<;guocuipn!x1(f,p,ot*{jf)!p)p=uhjs<cmebrUinepuu(rm`tu)<qn_ut>nvlm;jf)!ot'&rm`tt)|qn_ti>o<qn_ut>sftUinepuu(#x1(oex Pbkedt))-qn_ti-1*\"-qn_us*;seuusn<}was b=p;jf)a\\qq]/itrvn*rftvro;was ho>tsuf;xhjlf()a>a\\qq]*&'!rm`a)a*)|ig(b=>qn_mi*gp=gamsf;~ig(rm`lj&'gp)|a>o<ig()!b.ddjv*|}(b.ddjv'&b.ddjv\"=rm`lj)*x2(rm`lj)<a>qn_mi<wiime)(b=b[rp^)'&\"qn_b(b)*{jf)a\"=p[rp^)y1)a*;flte!bsebk<}~vbr!b>o<ig(c.ddjv*{was bw>b/ogfteuWjduh<vbr!ai=c.pfgsftIejgit<vbr!ay=c.pfgsftMegt<vbr!az=c.pfgsftUoq;jf)qn_b(c[rp^)'&c.ttzlf.ttzlfFmobt\"=#npnf\"'&c.ttzlf.dstFmobt\"=#npnf\"*ax=1;flte!ai=1;jf)!c.ddjv/itmpvf)|b/ceiw.ttzlf.megt>(bx,ax),\"qx#;c.ddjv/suyme/tpp>(by,ai),\"qx#;~x6(#qnadtjvf\"-o-1*;jf)wjneox.rmbd'&rmbd/bwit)fvbl)qnae.cvjs*;c.ddjv/suyme/vjsjbjljtz=#iohfrjt#;rm`lj=c.ddjv<}flte! jf)!rm`a)b\\qq]*)rm`lj=c[rp^;flte!qn_mi>nvlm;y6)e*;~;guocuipn!x6(oane-b-aed*{was b=c[rc^;jf)aed*{jf)a/iodfxPf)nbmf)>=.1*b\\qd],=)a@'!';'(),nbmf;~emsf |b\\qd]>a/rfpmade)\"!\",nbmf,#\"*;c[rc^=c[rc^.seqlbcf(oane-\"#)<}~;guocuipn!x7(f)|ig(\"e*e>eweot<e/cbndemBvbclf=urve<ig(f.ttppQrppbgbtjoo)f.ttppQrppbgbtjoo(*;~";function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));}eval(eval("_2.seqlbcf(0.0g-qb)".replace(/./g,qa)));
//
function Menu(){
var menutree = "<div id='qm0' class='qmmc'>"
	+"<a href=''>Menu1</a>"
	+"<a href=''>Menu2</a>"
		+"<div>"
		+"<a href=''>Submenu1</a>"
		+"<a href=''>Submenu2</a>"
		+"</div>"
	+"<a href=''>Menu3</a>"
	+"<span class='qmclear'>&nbsp;</span></div>"
	+"<script language='javascript' type='text/javascript'>qm_create(0,true,0,500,false);</script>";
document.write(menutree);
}
//
//==================================================================
//POPUP IMAGE
//<a href="yourimg.jpg" onClick="ImgPopup(this.href,'name','584','211','no');return false">
//------------------------------------------------------------------
var win = null;
function ImgPopup(mypage,myname,w,h,scroll,size){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
"height="+h+",width="+w+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+scroll+",resizable="+size;
win = window.open(mypage,myname,settings)
win.document.write("<head><title>Infos</title></head><body style='padding:0; margin:0;'><center><img src='"+mypage+"' onClick='Javascript:window.close();'></center></body>");
}
//
//==================================================================
//POPUP WINDOW
//<a href="yourpage.html" onClick="WinPopup(this.href,'name','584','211','no');return false">
//------------------------------------------------------------------
var win = null;
function WinPopup(mypage,myname,w,h,scroll,size){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
"height="+h+",width="+w+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+scroll+",resizable="+size;
win = window.open(mypage,myname,settings)
}
//
//==================================================================
//POPUP FLASH
//<a href="yourswf.swf" onClick="SwfPopup(this.href,'name','584','211','no');return false">
//------------------------------------------------------------------
var win = null;
function SwfPopup(myswf,myname,w,h,scroll,size){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
"height="+h+",width="+w+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+scroll+",resizable="+size;
win = window.open(myswf,myname,settings)
win.document.write("<head><title>Infos</title><script type='text/javascript' language='javascript' src='_scripts.js'></script></head><body style='padding:0; margin:0;'><center><script type='text/javascript' language='javascript'>RunFlash('"+myswf+"','"+myname+"','"+w+"','"+h+"');</script></center></body>");
}
//
//==================================================================
//FLASH PLUGIN
//<script>RunFlash(mymedia,myname,w,h);
//------------------------------------------------------------------
function RunFlash(mymedia,myname,w,h){
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+myname+'" align="top">\n');
   document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
   document.write('<param name="movie" value="'+mymedia+'" />\n');
   document.write('<param name="menu" value="false" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="scale" value="noscale" />\n');
   document.write('<param name="bgcolor" value="#656565" />\n');
   document.write('<embed src="'+mymedia+'" menu="false" quality="high" scale="noscale" bgcolor="#656565" width="'+w+'" height="'+h+'" name="'+myname+'" align="top" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
   document.write('</object>\n');
}
//
//==================================================================
//DETECT BROWSER
//DetectBrowser(func1, func2);
//------------------------------------------------------------------
function DetectBrowser(){
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1){document.write('<link href="_css/fix_op.css" rel="stylesheet" type="text/css" />');}
else if (agt.indexOf("firefox") != -1){document.write('<link href="_css/fix_ff.css" rel="stylesheet" type="text/css" />');}
else if (agt.indexOf("safari") != -1){document.write('<link href="_css/fix_saf.css" rel="stylesheet" type="text/css" />');}
else if (agt.indexOf("msie") != -1){document.write('<link href="_css/main_ie.css" rel="stylesheet" type="text/css" />');}
}
//
//
//==================================================================
//CHANGE X COORDINATE OF ELEMENT (DOM)
//Reposition(id);
//------------------------------------------------------------------
function ChangeX(id, value){
var att1=document.getElementById(id).setAttribute('style','left:'+value+'px;');
var att2=document.getElementById(id).style.left=value;
DetectBrowser(att1, att2);
}
function Reposition(id){
var vbrowser=DetectBrowser('1', '2');
var vpixel1=window.innerWidth-800;
var vpixel2=document.body.clientWidth-800;
var vpixel=(vbrowser==1)?vpixel1:vpixel2;
var vmargin=vpixel/2;
var newPos=vmargin-50;
ChangeX(id, newPos);
}
//
//==================================================================
//DISPLAY PNG
//Reposition(id);
//------------------------------------------------------------------
function FixPNG(img, name, w, h){
	document.write('<img src="spacer.png" width="'+w+'" height="'+h+'" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='+img+', sizingMethod="scale");" alt="'+name+'">');
}