/**
  *  JavaScript library for adamsjewelry.com
  *  Robert Kania, April 2011
  *
  **/




function flash(filename,w,h,kolor) { 

		var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + w + '" height="' + h + '" id="intro_blue" align="middle" bgcolor="' + kolor + '">'
		+ '<param name="allowScriptAccess" value="sameDomain" />'
		+ '<param name="movie" value="' + filename + '" /><PARAM NAME=wmode VALUE=transparent><param name="quality" wmode="transparent" value="high" /><param name="scale" value="noscale" /><embed src="' + filename + '" quality="high" wmode="transparent" scale="noscale" width="' + w + '" height="' + h + '" name="xxx" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" bgcolor="' + kolor + '" /><param name=bgcolor value="' + kolor + '" />'
		+ '</object>';

		majorVersion=8;
		minorVersion=8;
//		installinfo='<div style="margin-top: 170px; text-align: center;"><style>body { background: #ffffff; }</style><a href="https://www.macromedia.com/go/getflashplayer" target="_blank" style="font-family: Tahoma; color: #000000; text-decoration: none; font-size: 11px;">Strona wymaga zainstalowanego pluginu<br /><b>Flash Player</b> w wersji 8 lub wy¿szej.<br/><br/><img src="images/get_flash.jpg" alt="pobierz Flash Playera" border="0" /><br/><br/>Pobierz wtyczkê <strong>Flash Player</strong></a><br /><br /><br />'; 
		installinfo='<embed src="' + filename + '" quality="high" wmode="transparent" scale="noscale" width="' + w + '" height="' + h + '" name="xxx" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="' + kolor + '" /><param name=bgcolor value="' + kolor + '" />'; 
		if(navigator.product=='Gecko' || navigator.userAgent.indexOf('Opera')!=-1) {
		 if(plugin=navigator.plugins["Shockwave Flash"]) {
		  if(majorVersion > parseInt(plugin.description.substr(plugin.description.indexOf(".")-1, 1))
		  || minorVersion > parseInt(plugin.description.substr(plugin.description.length-2)) )
			document.write(installinfo);
		  else document.write(oeTags);
		 } else {
			document.write(installinfo); 
		 }
		}
		else document.write(oeTags);

};






// This prints the current date on the home page

function printDate () {
  var mydate=new Date();
  var year = mydate.getYear();
  if (year < 1000) year+=1900;
  var day=mydate.getDay();
  var month=mydate.getMonth();
  var daym=mydate.getDate();
  if (daym<10) daym=daym;
  var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  var dayarrayPL=new Array("Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota");
  var montharrayPL=new Array("Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień");
  document.write(""+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"");
};







// These functions are used for displaying time on the home page 

function updateclock(z){
    zone=z.options[z.selectedIndex].value;
    isitlocal=(z.options[0].selected)?true:false;
}

function WorldClock(){
    now=new Date();
    ofst=now.getTimezoneOffset()/60;
    secs=now.getSeconds();
    sec=-1.57+Math.PI*secs/30;
    mins=now.getMinutes();
    min=-1.57+Math.PI*mins/30;
    hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone);
    hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
    if (hr < 0) hr+=24;
    if (hr > 23) hr-=24;
    ampm = (hr > 11)?"PM":"AM";
    statusampm = ampm.toLowerCase();

    hr2 = hr;
    if (hr2 == 0) hr2=12;
    (hr2 < 13)?hr2:hr2 %= 12;
    if (hr2<10) hr2="0"+hr2

    var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm;

    if (document.all) worldclock.innerHTML=finaltime
    else if (document.getElementById) document.getElementById("worldclock").innerHTML=finaltime
    else if (document.layers){
        document.worldclockns.document.worldclockns2.document.write(finaltime)
        document.worldclockns.document.worldclockns2.document.close()
    }
    setTimeout('WorldClock()',1000);
}





// This is copied from CSScriptLib.js

CSStopExecution=false;
function CSAction(array) {return CSAction2(CSAct, array);}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var aa = fct[array[i]];
		if (aa == null) return false;
		var ta = new Array;
		for(var j=1;j<aa.length;j++) {
			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){
				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}
				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}
				else ta[j]=aa[j];}
			} else ta[j]=aa[j];
		}			
		result=aa[0](ta);
	}
	return result;
}
CSAct = new Object;
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
mustInitImg = true;
function initImgID() {var di = document.images; if (mustInitImg && di) { for (var i=0; i<di.length; i++) { if (!di[i].id) di[i].id=di[i].name; } mustInitImg = false;}}

function findElement(n,ly) {
	var d = document;
	if (browserVers < 4)		return d[n];
	if ((browserVers >= 6) && (d.getElementById)) {initImgID; return(d.getElementById(n))}; 
	var cd = ly ? ly.document : d;
	var elem = cd[n];
	if (!elem) {
		for (var i=0;i<cd.layers.length;i++) {
			elem = findElement(n,cd.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}

function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (i=0;i<array.length;i+=2) {
			img = null; var n = array[i];
			if (d.images) {
				if (d.layers) {img = findElement(n,0);}
				else {img = d.images[n];}
			}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (!img && d.getElementsByName) {
				var elms = d.getElementsByName(n);
				if (elms) {
					for (j=0;j<elms.length;j++) {
						if (elms[j].src) {img = elms[j]; break;}
					}
				}
			}
			if (img) {img.src = array[i+1];}
		}
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])
			changeImagesArray(toggleImages.arguments[i+1]);
	}
}

function CSClickReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; /* dont follow link */
	else return false; /* dont follow link */
}

// OpenPopup 2.0 by Nate Baldwin, www.mindpalette.com - copyright 2003 (May 7, 2004)
if (typeof MPStoreOpenWin2 == "undefined") MPStoreOpenWin2 = new Array();
if (typeof MPStoreWinStngs2 == "undefined") {
	MPStoreWinStngs2 = new Object();
	MPStoreWinStngs2.url = "";
	MPStoreWinStngs2.name = "";
	MPStoreWinStngs2.options = "";
	MPStoreWinStngs2.focus = true;
	MPStoreWinStngs2.html = "";
	MPStoreWinStngs2.redirect = "";
	}
function MPOpenPopupWin2(action) {
	MPStoreWinStngs2.url = "";
	MPStoreWinStngs2.name = "";
	MPStoreWinStngs2.options = "";
	MPStoreWinStngs2.focus = true;
	MPStoreWinStngs2.html = "";
	MPStoreWinStngs2.redirect = "";
	var thisURL = (action[1] != "#" && action[1] != "(EmptyReference!)" && action[1] != "(Empty Reference!)") ? action[1] : "";
	var redirect = (action[31] != "#" && action[31] != "(EmptyReference!)" && action[31] != "(Empty Reference!)") ? action[31] : "";
	if (thisURL != "") {
		var urlType = (action[2] == 1) ? "image" : "page";
		MPStoreWinStngs2.focus = action[3];
		var regExpr = /[\w\S?]/;
		var validName = "";
		action[11] = (action[11] == true) ? "yes" : "no";
		var winName = (action[4] != "") ? action[4] : "PopUpWin";
		for (var n=0; n<winName.length; n++) {
			if (regExpr.test(winName.charAt(n))) validName += winName.charAt(n);
			}
		winName = (validName != "") ? validName : "PopUpWin";
		var width = (action[7] > screen.availWidth) ? screen.availWidth : action[7];
		var height = (action[9] > screen.availHeight) ? screen.availHeight : action[9];
		if (action[6] == true || action[8] == true) {
			width = screen.availWidth;
			posX = 0;
			}
		if (action[6] == true || action[10] == true) {
			height = screen.availHeight;
			posY = 0;
			}
		var posX = (action[13] != "") ? action[13] : 0;
		var posY = (action[15] != "") ? action[15] : 0;
		if (action[12] == true && width > 0 && height > 0) {
			posX = Math.round((screen.availWidth - width) / 2);
			posY = Math.round((screen.availHeight - height) / 2);
			} else {
			if (action[14] == 1 && width > 0) posX = (screen.availWidth - width - posX);
				else if (action[14] == 2) posX = Math.round((screen.availWidth - width) / 2);
			if (action[16] == 1 && height > 0) posY = (screen.availHeight - height - posY);
				else if (action[16] == 2) posY = Math.round((screen.availHeight - height) / 2);
			}
		for (i=17; i<=22; i++) {
			action[i] = (action[i] == true) ? "yes" : "no";
			}
		if (action[5] == true && typeof MPStoreOpenWin2[winName] != "undefined") {
			var oldWindow = MPStoreOpenWin2[winName];
			if (oldWindow && typeof oldWindow == "object") if (!oldWindow.closed) oldWindow.close();
			}
		var windowOptions = "";
		if (width > 0) windowOptions += "width=" + width + ",";
		if (height > 0) windowOptions += "height=" + height + ",";
		windowOptions += "resizable=" + action[11];
		windowOptions += ",scrollbars=" + action[17];
		windowOptions += ",menubar=" + action[18];
		windowOptions += ",toolbar=" + action[21];
		windowOptions += ",directories=" + action[19];
		windowOptions += ",location=" + action[22];
		windowOptions += ",status=" + action[20];
		windowOptions += ",left=" + posX;
		windowOptions += ",top=" + posY;
		if (urlType == "image") {
			var font = "Verdana, Arial, Helvetica, sans-serif";
			if (action[28] == 1) font = "Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif";
				else if (action[28] == 2) font = "Helvetica, Geneva, Arial, SunSans-Regular, sans-serif";
				else if (action[28] == 3) font = "\"Times New Roman\", Times, Georgia, serif";
				else if (action[28] == 4) font = "\"Courier New\", Courier, Monaco, monospace";
			var textColor = (action[27] != "") ? action[27] : "black";
			var linkColor = (action[30] != "") ? action[30] : "#00417d";
			var textSize = (action[29] != "" && action[29] > 5) ? action[29]+"" : "12";
			var backGround = (action[24] != "") ? action[24] : "#ffffff";
			var thisHTML = "";
			thisHTML += '<'+'!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'+"\n\n";
			thisHTML += '<'+'html>'+"\n\n";
			thisHTML += '<'+'head>'+"\n";
			thisHTML += '<'+'meta http-equiv="content-type" content="text/html;charset=iso-8859-1">'+"\n";
			if (action[23] != "") thisHTML += '<'+'title>'+action[23]+'<'+'/title>'+"\n";
			thisHTML += '<'+'style type="text/css" media="screen"><'+'!--'+"\n";
			thisHTML += 'body, div, td  { color: '+textColor+'; font-size: '+textSize+'px; font-family: '+font+'; background-color: '+backGround+'; margin: 0; padding: 0 }'+"\n";
			thisHTML += '.textpad  { margin: 0; padding: 4px 0 }'+"\n";
			if (action[25] == true) {
				thisHTML += 'a { color: '+linkColor+'; font-size: '+textSize+'px; text-decoration: none }'+"\n";
				thisHTML += 'a:link { color: '+linkColor+'; text-decoration: none }'+"\n";
				thisHTML += 'a:visited { color: '+linkColor+'; text-decoration: none }'+"\n";
				thisHTML += 'a:hover { color: '+linkColor+'; text-decoration: underline }'+"\n";
				}
			thisHTML += "--><"+"/style>\n<"+"/head>\n\n";
			thisHTML += '<'+'body bgcolor="'+backGround+'" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">'+"\n";
			if (action[26] != "") thisHTML += '<'+'div class="textpad" align="center">'+action[26]+'<'+'/div>'+"\n";
			thisHTML += '<'+'div align="center"><'+'img src="'+thisURL+'" alt="" border="0"><'+'/div>'+"\n";
			if (action[25] != "") thisHTML += '<'+'div class="textpad" align="center"><'+'a href="#" onclick="self.close();">Close Window<'+'/a><'+'/div>'+"\n";
			thisHTML += "<"+"/body>\n\n<"+"/html>";
			MPStoreWinStngs2.html = thisHTML;
			MPStoreWinStngs2.type = "image";
			thisURL = "";
			}
		MPStoreWinStngs2.name = winName;
		MPStoreWinStngs2.options = windowOptions;
		MPStoreWinStngs2.url = thisURL;
		MPStoreWinStngs2.redirect = redirect;
		var thisPopup = window.open(thisURL, winName, windowOptions);
		MPStoreOpenWin2[MPStoreWinStngs2.name] = thisPopup;
		setTimeout("MPTriggerDelayWin2()", 400);
		}
	}
function MPTriggerDelayWin2() {
	if (typeof MPStoreOpenWin2[MPStoreWinStngs2.name] == "object") {
		var thisPopup = MPStoreOpenWin2[MPStoreWinStngs2.name];
		if (thisPopup.closed) thisPopup = window.open(MPStoreWinStngs2.url, MPStoreWinStngs2.name, MPStoreWinStngs2.options);
		if (thisPopup && typeof thisPopup == "object") {
			if (MPStoreWinStngs2.type == "image" && MPStoreWinStngs2.html != "") {
				if (!thisPopup.closed) {
					thisPopup.document.open();
					thisPopup.document.write(MPStoreWinStngs2.html);
					thisPopup.document.close();
					}
				}
			}
		if (MPStoreWinStngs2.redirect != "") window.location = MPStoreWinStngs2.redirect;
		MPStoreOpenWin2[MPStoreWinStngs2.name] = thisPopup;
		if (thisPopup && typeof thisPopup == "object") if (!thisPopup.closed && MPStoreWinStngs2.focus) thisPopup.focus();
		MPStoreWinStngs2.url = "";
		MPStoreWinStngs2.name = "";
		MPStoreWinStngs2.options = "";
		MPStoreWinStngs2.focus = true;
		MPStoreWinStngs2.html = "";
		MPStoreWinStngs2.redirect = "";
		}
	}
//-->









//NoSpam Action v1.1  AardActions by Jim Aardvark. Copyright 2003. seanclayton@tinkers-inc.co.uk

function JAnoSpam(action){
var user=action[1];
var domain=action[2];
var suffix=action[3];
var subject=action[4];
document.write('<a href="' + 'mailto:' + user + '@' + domain + suffix + '?subject=' + subject + '">' + user + '@' + domain + suffix + '</a>');

}




//MenuMachine 2 (v2.2.1) Copyright 2007 Big Bang Software All Rights Reserved
//needed for displaying Adams video commercials on News pages.
//var _u="undefined",__M=Math,__P=parseInt;if(typeof(_)==_u){scriptStart=new Date();__menuHolder=new ___mh();_sTs="<script type=\"text/javascript\" src='";_sTe="'><\/script>";__cM=null;__cPk=null;__lM=false;__oM=false;_="##inherit##";_pa="position:absolute;";__hr=document.location.href.split("?")[0];haligns=['left','center','right'];__mmLdDly=200;}if(typeof(MMUseiFrames)==_u)MMUseiFrames=0;if(typeof(MMLoadFast)==_u)MMLoadFast=1;function ___mh(){this.pks=[];this.pkgIndices=[];this.timer=0;this.fl=0;}___mh.prototype.aP=function(pkg){this.pkgIndices[pkg.name]=this.pks.length;this.pks.pu(pkg);};___mh.prototype.gP=function(pkgName){var pkg=this.pks[this.pkgIndices[pkgName]];return pkg;};  function menuPackage(name,type,oDy,cDy,_hF,ooc,hP,lockState,lockLevel,abSizing){var t=this;t.id=__M.round(__M.random()*1000);t.name=name;t.type=type;t.oDy=oDy;t.cDy=cDy;t.bks=[];t.bIx=[];t.items=[];t.iI=[];t.hP=hP;em=abSizing?mmpx:emv;t.lockState=lockState;t.lI=null;t.ooc=ooc;t._rT=null;t._oTmr=t.nt=null;t._hiLTimer=null;t.mmFolder=mmfolder._rU();t._fP=t.mmFolder==""?"":(t.mmFolder+name+"/");t._hF=_hF;t.spacer=_gL(t.mmFolder,"core/spacer.gif");t.actions=[];t.vB=[];t.stS=["","Ov","Ck"];t.fo=null;t.tLfC="";t._tLnC="";t.tLiC=[];t.sLiC=[];t.subBlockNormal="";t.subBlockFrame="";t.root=null;t.loaded=0;t.lckld=0;t.lckt=null;t.fMs=[];}menuPackage.prototype.action=function(m,over,out,click){this.actions[m]={over:over,out:out,click:click};};menuPackage.prototype.frame=function(fN,xAlign,xOffset,yAlign,yOffset){this.fo={name:fN,fr:fN,xAlign:xAlign,xOffset:xOffset,yAlign:yAlign,yOffset:yOffset,href:null}; };menuPackage.prototype.hl=function(m,lockState){var ind=this.iI[m];if(ind!=_u){this.lockState=lockState;this.lI=this.items[ind];if(this.lckld==1){this.lckld==0;}this.lckt=setInterval("__doHl(__menuHolder.pks[__menuHolder.pkgIndices['"+this.name+"']])",10);}};function __doHl(pkg){if(pkg.lckld){clearInterval(pkg.lckt);pkg._fR();}};menuPackage.prototype.aB=function(name,parent,w,h,x,y,xO,yO,iBF,oBF,iEF,oEF,iFp,oR,opacity,bkI,iPd,bPd,bkC,bW,bCl,bS,sS,spC,spW,spI,spS,spIm,ar,arOv,arCk,arXoffset,arYoffset,arWidth,arHeight,cIm,backImgWidth,backImgHeight,spIH,spIW){spIW=(typeof(spIW)==_u)?5:spIW;spIH=(typeof(spIH)==_u)?5:spIH;var b=new __B(this,name,parent,w,h,x,y,iBF,oBF,iFp,oR,opacity,bkI,iPd,bPd,bkC,bW,bCl,bS,sS,spC,spW,spI,spS,spIm,ar,arOv,arCk,arXoffset,arYoffset,arWidth,arHeight,cIm,backImgWidth,backImgHeight,spIH,spIW);this.bIx[b.name]=this.bks.length;this.bks.pu(b);if(!this.root){this.root=b;}};menuPackage.prototype.aI=function(name,b,w,h,x,y,text,textOv,url,uT,image,imageOv,imageCk,icXo,icYo,icW,icH,ttT,stT,index,iSb,fFm,bkC,fnC,fSz,fSt,txD,bW,bCl,bS,txA,vA,xP,yP,icI,oSt,fFmOv,bkCOv,fnCOv,fSzOv,fStOv,txDOv,bWOv,bClOv,bSOv,txAOv,vAOv,xPOv,yPOv,icIOv,cSt,fFmCk,bkCCk,fnCCk,fSzCk,fStCk,txDCk,bWCk,bClCk,bSCk,txACk,vACk,xPCk,yPCk,icICk){var m=new __I(this,name,b,w,h,x,y,text,textOv,url,uT,image,imageOv,imageCk,icXo,icYo,icW,icH,ttT,stT,index);var props=m._prp,proplen=props.length;var sb=(m.index==0)?(m.b.parent?m.b.parent:null):m.b.items[m.index-1];if(iSb&&sb){m.oSt=sb.oSt;m.cSt=sb.cSt;for(var f=0,l=this.stS.length;f<l;f++){var s=this.stS[f];for(var i=0,l=props.length;i<l;i++){var pp=props[i]+s;m[pp]=sb[pp];}}}else{function _ap(s,u){var props=m._prp,proplen=props.length,p,i;for(i=0;i<proplen;i++){p=props[i],pp=p+s,val=getVal(pp,eval(pp));m[p+u]=(val==_ && sb)?sb[pp]:val;}}for(var f=0,l=this.stS.length;f<l;f++){var s=this.stS[f];switch(s){case "Ov":m.oSt=oSt;oSt?_ap(s,s):_ap("",s);break;case "Ck":if(!m.oSt){m.cSt=fFmOv?1:0;if(m.cSt){for(var i=1;i<proplen+1;i++){var pp=props[i-1]+s;var val=getVal(pp,((i==proplen)?cSt:eval(props[i]+"Ov")));m[pp]=(val==_ && sb)?sb[pp]:val;}}else{_ap("",s);}}else{m.cSt=cSt;cSt?_ap(s,s):(m.oSt?_ap("Ov",s):_ap("",s));}break;default:_ap(s,s);break;}}}var p=pkg.spacer;m.image=image==""?p:_gL(pkg._fP,image);m.imageOv=imageOv==""?p:_gL(m.pkg._fP,imageOv);m.imageCk=imageCk==""?p:_gL(m.pkg._fP,imageCk);m.ip=(m.image!=p||m.imageOv!=p||m.imageCk!=p)?1:0;m.icI=m.icI==""?p:_gL(pkg._fP,m.icI);m.icIOv=(m.oSt&&m.icIOv=="")?p:_gL(m.pkg._fP,m.icIOv);m.icICk=(m.cSt&&m.icICk=="")?p:_gL(m.pkg._fP,m.icICk);m.ic=(m.icI!=p||(m.oSt&&m.icIOv!=p)||(m.cSt&&m.icICk!=p))?1:0;this.iI[m.name]=this.items.length;this.items.pu(m);};var __bSt=["solid","dotted","dashed","outset","inset"],fSts=["","font-weight:bold;","font-style:italic;","font-style:italic;font-weight:bold;"];var txD=["none","underline"];function getVal(pp,val){if(val!=_){switch(pp){case "bS":case "bSOv":case "bSCk":val=__bSt[val];break;case "txD":case "txDOv":case "txDCk":val=txD[val];break;}}return val;}function __I(pkg,name,b,w,h,x,y,text,textOv,url,uT,image,imageOv,imageCk,icXo,icYo,icW,icH,ttT,stT,index){var t=this;t.pkg=pkg;t.name=name;t.b=pkg.bks[pkg.bIx[b]]; var b=t.b;b.items.pu(t);t.sub=null; t.level=t.b.level;t.text=text;t.textOv=textOv==""?text:textOv;t.textCk=t.textOv;t.url=_gL(t.pkg._fP,url);t.uT=uT;if(uT!=""){if(!pkg.fMs[uT]){pkg.fMs.pu(uT);pkg.fMs[uT]=1;}}t.w=w;t.h=h;t.x=x;t.y=y;t.icXo=icXo;t.icYo=icYo;t.icW=icW;t.icH=icH;t.ttT=ttT;t.stT=stT;t.index=index;t.state="";t.close=0;}function __B(pkg,name,parent,w,h,x,y,iBF,oBF,iFp,oR,opacity,bkI,iPd,bPd,bkC,bW,bCl,bS,sS,spC,spW,spI,spS,spIm,ar,arOv,arCk,arXoffset,arYoffset,arWidth,arHeight,cIm,backImgWidth,backImgHeight,spIH,spIW){var dom=__br.dom?1:0,t=this;t._fxT=null;t._fxing=0;t._oTmr=null;t.nt=null;t.w=w;t.h=h;t.x=x;t.y=y;t.iEF=new _fx(iBF);t.oEF=new _fx(oBF);t.pkg=pkg;t.name=name;if(parent!=""){t.parent=pkg.items[pkg.iI[parent]];t.parent.sub=t;t.parentBlock=t.parent.b;}else{t.parent=null;t.parentBlock=null;pkg.vB.pu(t);}t.items=[]; t.level=(t.parent==null)?0:t.parent.level+1;var props=t._prp;if(iFp){for(var i=0,l=props.length;i<l;i++){var pp=props[i];t[pp]=t.parentBlock[pp];}}else{for(var i=0,l=props.length;i<l;i++){var pp=props[i];t[pp]=getVal(pp,eval(pp));}}var p=pkg.spacer;t.ar=t.ar==""?p:_gL(pkg._fP,t.ar);t.arOv=(t.arOv=="")?p:_gL(t.pkg._fP,t.arOv);t.arCk=(t.arCk=="")?p:_gL(t.pkg._fP,t.arCk);t.ap=(t.ar!=p||t.arOv!=p||t.arCk!=p)?1:0;if(spIm&&spIm!=""){t.spIm=_gL(pkg._fP,t.spIm);t.sepWidth=spIW;t.sepHeight=spIH;}else {t.spIm=null;}t.bc=t._gBc();}function _fx(b){var e=[_eO,easeIn,_eoBk,_eoBnc,_eoEl],t=[null,"fade","zoom","sWs","puff"];this.oR=b&3;this.ease=e[(b&28)>>2];this.type=t[(b&224)>>5];this.fade=(b&256)>>8;this.dr=(b>>9)?4:7;}__I.prototype._prp=["fFm","bkC","fnC","fSz","fSt","txD","bW","bCl","bS","txA","vA","xP","yP","icI"];__B.prototype._prp=["oR","opacity","bkI","iPd","bPd","bkC","bW","bCl","bS","sS","spC","spW","spI","spS","spIm","ar","arOv","arCk","arXoffset","arYoffset","arWidth","arHeight","cIm","backImgWidth","backImgHeight"];function emv(v){return v+"em";}function mmpx(v){return (v*16)+"px";}__B.prototype._gBc=function(){var bc=[this],b=this;while(b.parent && (b=b.parent.b)){bc.pu(b);}return bc;};function _mm2brck(){var b=this,d=document,ua=navigator.userAgent.toLowerCase(),gl=ua.indexOf("gecko/");b.ua=ua;b.dom=d.getElementById?1:0;b.ns=(ua.indexOf('mozilla')!=-1&&ua.indexOf('compatible')==-1)?1:0;b.nsDom=b.dom&&b.ns?1:0;function o(n){return (ua.indexOf("opera "+n)>-1||ua.indexOf("opera/"+n)>-1)&&window.opera?1:0}b.o5=o(5);b.o6=o(6);b.op=(b.o5||b.o6||window.opera);b.ie=(ua.indexOf('msie')!=-1&&!b.op)?1:0;b.ieDom=b.dom&&b.ie?1:0;b.n4=b.ns&&!b.dom&&d.layers?1:0;b.ie4=b.ie&&!b.dom&&d.all?1:0;b.m=ua.indexOf("mac")>-1?1:0;b.ie4m=b.ie4&&b.m?1:0;b.mop5=b.m&&b.op5?1:0;b.iem=b.ie&&b.m?1:0;b.ie50m=b.ie&&b.m&&ua.indexOf("5.0")>-1?1:0;b.ie6=(b.ie&&typeof(document.compatMode)!=_u)?1:0;b.ie7=(d.documentElement&&typeof(d.documentElement.style.maxHeight)!=_u)?1:0;b.ief=(b.ie6||b.ie7)?1:0;b.ma=b.iem&&ua.indexOf("aol")>-1?1:0;b.sf=ua.indexOf("applewebkit")>-1?1:0;b.dt=(b.nsDom||(b.op5||b.op6)||(d.doctype&&d.doctype.name&&d.doctype.name.indexOf("http:\/\/")>-1)||d.compatMode&&(d.compatMode!="BackCompat"&&d.compatMode!="QuirksMode"))?1:0;var d=__P(ua.substr(gl+6,8));b.og=gl>-1?(d<20040113?1:0):0;b.rog=b.og&&d<20030312?1:0;var v=navigator.appVersion;b.v=0;var i=v.indexOf("MSIE"); if(i!=-1){i+=4;var j=v.indexOf(";",i);if(j!=-1){b.v=v.substring(i,j)}else{b.v=v.substring(i)}}b.un=(b.o6||b.n4||b.ie4m||b.mop5)?1:0;b.w3=(!b.un&&b.dom&&(!b.ie||b.op||(b.ie&&b.dt)));}__br=new _mm2brck();if(typeof(Array.pop)==_u){Array.prototype.pop = function() {var lastItem = null;if(this.length>0) {lastItem=this[this.length-1];this.length--;}return lastItem;};}if (typeof(Array.shift)==_u) {Array.prototype.shift = function(){var firstItem = this[0],i;for (i=0,l=this.length-1;i<l;i++) {this[i] = this[i + 1];}this.length--;return firstItem;};}if(typeof(Array.prototype.copy)==_u){Array.prototype.copy=function(a){var i,b=[];for(i=0;i<this.length;i++){b[i]=(typeof this[i].copy!=_u)?this[i].copy():this[i];}return b;};}if(typeof(Array.prototype.splice)==_u){Array.prototype.splice=function(a,c){var i,e=arguments,d=this.copy(),f=a;if(!c)c=this.length-a;for(i=0;i<e.length-2;i++)this[a+i]=e[i+2];for(a;a<this.length-c;a++)this[a+e.length-2]=d[a-c];this.length-=c-e.length+2;return d.slice(f,f+c);};}if(typeof(Array.push)==_u){Array.prototype.pu=function(p){this[this.length]=p;};}else{Array.prototype.pu=Array.prototype.push;}String.prototype._rU=function(){var d=__hr,t=this,a=t.indexOf("/")==0,u,b,c="",g=1;if(t=="../")return "";if(t.indexOf(":\/\/")>-1||a){if(a){u=d.split(":\/\/");u=(u.length>1)?u[1]:u[0];u=u.split("/");u.shift();d="/"+u.join("/");}d=d.split("/");b=t.split("/");while(g){if(d[0]==b[0]){d.shift();b.shift();}else{g=0;}if(d.length==0||b.length==0)g=0;}while(d.length>1){d.shift();c=c+"../";}return c+b.join("/");}else{return t;}};function _gL(p,l){if(p!=""&&l!=""&&l.indexOf(":")==-1&&l.substr(0,1)!="/"&&l.indexOf("#")!=0) {if(l.indexOf("../../")==0){l=l.substr(6); }else{l=p+l;return l._aU(__hr);}var p=p.split("/"); p.splice(p.length-3,3); p=p.join("/");if(p.length)p+="/";l=p+l;l=l._aU(__hr);}var n="navigation.html";if(p==""&&__hr.indexOf(n)!=-1&&__hr.indexOf(menuName+"/"+n)==-1&&l.charAt(0)!="."&&l.indexOf("core/")!=0){l="../"+menuName+"/"+l;}return l;}String.prototype._aU=function(pl){var t=this;var prx=pl.substr(0,pl.indexOf(":")+1);pl=pl.substr(prx.length);while(pl.indexOf("/")==0){pl=pl.substr(1);prx=prx+"/";}var sU=pl.split("/");sU.pop();while(t.indexOf("../")==0){sU.pop();t=t.substr(3);}sU.pu(t);t=prx+sU.join("/");var c=t.indexOf("file:");if(c!=-1&&t.indexOf("\/\/")!=(c+5)){t=t.substr(0,c+5)+"\/\/"+t.substr(c+5,t.length);}return t;};function _eO(t,b,c,d){return -c*(t/=d)*(t-2)+b}function easeIn(t,b,c,d){return c*(t/=d)*t + b}function _eoBnc(t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else {return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}}function _eoBk(t,b,c,d){var s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b}function _eoEl(t,b,c,d,a,p) {if(t==0)return b;if((t/=d)==1)return b+c;p=d*.3;a=c;var s=p/4;return a*__M.pow(2,-10*t)*__M.sin((t*d-s)*(2*__M.PI)/p)+c+b;}function __gF(f) {return frames[f];}function __gFl(w,rs){if(typeof(___frameList)==_u){___frameList=[];}var r,i,go;if(w){var fL=w.frames;}else{try{var fL=top.frames,v=fL[0];}catch(e){try{var fL=parent.frames,v=fL[0];}catch(e){var fL=window.frames,v=fL[0];}}}if(fL.length==1){try {go=fL[0].name;}catch(e){go=null;}}else{go=1;}if(go!=null){for(i=0;i<fL.length;i++){try{var o={f:fL[i],u:null};___frameList[fL[i].name]=o;___frameList.pu(o);__gFl(fL[i]);}catch(e){}}}return ___frameList;};var ___frames=__gFl();menuPackage.prototype.fIv=function(){var f=this.fo;if(f){try{var url=___frames[f.fr].f.location.href;}catch(e){___frames[f.fr].u=null;return 1;}return 0;}else{return 0;}};function _dU(){if(__cM&&__oM){var pkg=__cM.pkg;if(__cM.close){var sub=__cM.sub;if(sub){if(pkg._iBv(sub)){__cM.CvB(1);}}}__cM.close=0;var c=__cM.sub?((pkg.type==0&&__clM&&__clM==__cM)?1:pkg.hP):1;__cM._hiL(c,1);__hA(__clM,"click");if(__clM && __clM.url && __clM.url!=""){var f,u=__clM.url,tgt=__clM.uT;if(tgt!=_u&&tgt!=""){var tnames={_self:self,_parent:parent,_top:top};if(typeof(tnames[tgt])!=_u){f=tnames[tgt];}else{if(tgt=="_blank"){window.open(__clM.url,("m"+__M.round(__M.random()*99)),"directories,location,favorites,menubar,resizable,personalbar,scrollbars,status,titlebar,toolbar");return;}f=___frames[tgt];if(!f){___frames=__gFl();f=___frames[tgt];f=f?f.f:document;}else{f=f.f;}}}else{if(__clM.pkg.fo){f=___frames[__clM.pkg.fo.fr];if(f){f=f.f;}else{f=document;}}else{f=document;}}if(__clM.pkg.fo)__clM.pkg._fR(1);if(u.indexOf("javascript:")==0){eval(u.substr(11));}else if(u!="#"){f.location.href=__clM.url;}}__clM=null;}};__clM=null;function _dC(){if(__cM&&__oM){__clM=__cM;var pkg=__cM.pkg;if(pkg.type==1){var sub=__cM.sub;if(sub && pkg._iBv(sub)){__cM.close=1;__cM._hiL(2);}else{__cM.show(1);}}else{__cM.show(1);}} };function __hA(m,s){if(m&&m.pkg&&m.pkg){var a=m.pkg.actions[m.name];if(a){var aN=a[s];if(aN.length && CSAct && CSAct[aN]){CSAction([aN]);}}}};function _v(id,m,fr){var t=this;t.el=_gI(id,fr);t.style=t.el.style;t.b=m.b;t.m=m;t._rT=null;};function _rsI(items){for(var f=0;f<items.length;f++){var m=items[f],p=m.pkg;var s=(m.sub && m.pkg._iBv(m.sub))?p.hP:0;m._hiL(s,1);}_sSt("");};function __cFx(b,iOp){if(b._fxT){clearInterval(b._fxT);b._fxT=null;}var pkg=b.pkg,dl=(iOp?pkg.oDy:pkg.cDy);if(b._oTmr){clearTimeout(b._oTmr);b._oTmr=null;}if(dl==0){b._sFx(iOp);}else{b[iOp?"_oTmr":"nt"]=setTimeout("var q=__menuHolder.gP('"+pkg.name+"');q.bks[q.bIx['"+b.name+"']]._sFx("+iOp+");",(iOp?pkg.oDy:pkg.cDy));}};__I.prototype.show=function(iC,iP,mi){var t=this;if(t.pkg.type==0&&t.pkg._hF){_hF(1);}if(typeof(iP)==_u)iP=0;if(typeof(mi)==_u)mi=0;__cM=t;if(!iP){if(__cPk && __cPk!=t.pkg && __cPk.type==0){__cPk._fR(1);}__cPk=t.pkg;}if(t.pkg.type==1 && iC){t.CvB();}var _rL=((t.pkg.type==0 && ((!t.pkg.ooc)||(t.pkg.ooc && iC))))?1:0;if(!_rL){_rsI(t.b.items);}function rst(r){var m=t,i=0,c;while(m){if((t.pkg.type==0&&iC&&t==m)||(t.pkg.type==1&&i==0&&iC)){c=2;}else if(i==0){c=(!t.pkg.ooc&&m.sub)?((t==m)?1:t.pkg.hP):(iC+1);}else{c=(t==m)?1:t.pkg.hP;}m._hiL(c,r);m=m.b.parent;i++;}}rst(0);if(_rL){t.CvB();}if(_mmRs){rst(1);}__cM=t;_sSt(t.stT!=""?t.stT:t.url);if(mi)_aFev();};function _sSt(s){try{window.status=s}catch(e){};};function __gS(id,fr){var el=_gI(id,fr);return (el?el.style:new Object());};function _sI(p,el,src){if(__br.ie&&__br.v>=5.5&&src.toLowerCase().substr(src.length-3,3)=="png"){el.src=p.spacer;el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='scale')";}else{el.src=src;}};__I.prototype._hiL=function(s,Ri){if(typeof(s)==_u)s=1;if(typeof(Ri)==_u)Ri=0;var t=this,pkg=t.pkg,st=(pkg.lI==t&&(_mmRs||Ri))?pkg.stS[pkg.lockState]:pkg.stS[s];if(st!=null && t.state!=st){var n=t.n,stls=["backgroundColor"],prps=["bkC"],i;for(i=0;i<stls.length;i++){n[stls[i]]=t[prps[i]+st];}if(t.ip){var im=t["image"+st];if(im!=""){_sI(pkg,t.i,t["image"+st]);t.i.style.left=em(t["iO"+st]);t.i.style.top=em(t["iO"+st]);t.i.style.clip=t["iCp"+st];}}if(t.ar){_sI(pkg,t.ar,t.b["ar"+st]);t.ar.style.left=em(t["arXoffset"+st]);t.ar.style.top=em(t["arYoffset"+st]);}if(t.ic){_sI(pkg,t.ics,t["icI"+st]);t.ics.style.left=em(t["icXo"+st]);t.ics.style.top=em(t["icYo"+st]);} t.n.width=em(t["w"+st]);t.n.height=em(t["h"+st]);t.n.border=t["bW"+st]?(t["bS"+st]+" "+em(t["bW"+st])+" "+t["bCl"+st]):"0 transparent";t.t.innerHTML=t["text"+st];t.tf.left=em(t["textXpos"+st]);t.tf.width=em(t["textWidth"+st]);t.tf.height=em(t["h"+st]);t.t.style.fontSize=em(t["fSz"+st]);t.tf.color=t["fnC"+st];var s,w;switch(t["fSt"+st]){case 0:s=w="normal";break;case 1:s="normal";w="bold";break;case 2:s="italic";w="normal";break;case 3:s="italic";w="bold";break;}t.tf.fontStyle=s;t.tf.fontWeight=w;t.tf.textDecoration=t["txD"+st];t.tf.textAlign=haligns[t["txA"+st]];t.tf.top=em(t["yP"+st]);t.state=st;}};var _mmRs=0;menuPackage.prototype._fR=function(im){if(typeof(im)==_u)im=0;_mmRs=1;if(this.lI){_rsI(this.bks[0].items);this.lI.show(1,1);}else{var i,bks=this.bks,vB=[bks[0]];for(i=0;i<bks.length;i++){var b=bks[i];if(this._iBv(b)){if(i!=0){if(im){b._nFx(0);}else{__cFx(b,0);}}else{_rsI(b.items);}}}this.vB=vB;if(this._hF){_hF(0);}}_mmRs=0;};__I.prototype._iiBc=function(t){var i=this;while(i){if(i==t)return 1;i=i.b;if(i){i=i.parent;}}return 0;};__I.prototype.CvB=function(hideSubs){if(typeof(hideSubs)==_u){hideSubs=null;}if(this.pkg.type==1){this.csVE(hideSubs);return;}var b=(this.sub&&!(_mmRs&&(this==this.pkg.lI)))?this.sub:this.b;var bc=b.bc,chainLength=bc.length;pkg=b.pkg,vB=pkg.vB;for(var i=0;i<chainLength;i++){if(!pkg._iBv(bc[i])){__cFx(bc[i],1);}}var hideList=[],vb=[];for(var i=0,l=vB.length;i<l;i++){var v=vB[i];vb.pu(v.name);var visible=false;for(var f=0;f<chainLength;f++){if(bc[f]==v){visible=true;break;}}if(!visible){hideList.pu(v.name);__cFx(v,0);}}var bc=b.bc;pkg.vB=bc;};menuPackage.prototype._iBv=function(b){if(b.level==0)return 1;var visibleList=this.vB;for(var i=0,l=visibleList.length;i<l;i++){if(visibleList[i]==b||b._fxing==2){return 1;}}return 0;};__I.prototype.csVE=function(hideSubs){if(!(_mmRs&&(this==this.pkg.lI)) && (typeof(hideSubs)==_u || !hideSubs)){var b=this.sub?this.sub:this.b;}else{var b=this.b;}var bc=b.bc,chainLength=bc.length;pkg=b.pkg,vB=pkg.vB;for(var i=0,l=vB.length;i<l;i++){var v=vB[i],visible=false;for(var f=0;f<chainLength;f++){if(bc[f]==v){visible=true;break;}}if(!visible){__cFx(v,0);}}var bc=b.bc;pkg.vB=bc;for(var i=0;i<chainLength;i++){var b=bc[i];b._cO();__cFx(b,1);}};var _cm=__br.w3?" ":",";__I.prototype._gD=function(){var t=this,w=t.w,h=t.h,b=t.b,bw=t.bW,bw2=(__br.w3?(bw*2):bw);t.x=t.x-b.bW;t.y=t.y-b.bW;t.xP=t.xP-bw;t.yP=t.yP-bw;t.w=w-bw2;t.h=h-bw2;if(t.ip){t.iW=em(w);t.iH=em(h);t.iO=-bw;t.iCp="rect("+em(bw)+_cm+t.iW+_cm+t.iH+_cm+em(bw)+")";}if(t.oSt){var obw=t.bWOv,obw2=__br.w3?(obw*2):obw;t.wOv=w-obw2;t.hOv=h-obw2;t.xPOv=t.xPOv-obw;t.yPOv=t.yPOv-obw;}else{var obw=bw;t.wOv=t.w;t.hOv=t.h;t.xPOv=t.xP;t.yPOv=t.yP;}if(t.ip&&t.imageOv){t.iOOv=-obw;t.iCpOv="rect("+em(obw)+_cm+t.iW+_cm+t.iH+_cm+em(obw)+")";}if(t.cSt){var cbw=t.bWCk,cbw2=__br.w3?(cbw*2):cbw;t.wCk=w-cbw2;t.hCk=h-cbw2;t.xPCk=t.xPCk-cbw;t.yPCk=t.yPCk-cbw;}else if(t.oSt){var cbw=obw;t.wCk=t.wOv;t.hCk=t.hOv;t.xPCk=t.xPOv;t.yPCk=t.yPOv;}else{var cbw=bw;t.wCk=t.w;t.hCk=t.h;t.xPCk=t.xP;t.yPCk=t.yP;}if(t.ip&&t.imageCk){t.iOCk=-cbw;t.iCpCk="rect("+em(cbw)+_cm+t.iW+_cm+t.iH+_cm+em(cbw)+")";}var stS=t.pkg.stS;for(var i=0;i<stS.length;i++){var s=stS[i],xpads=[t["xP"+s],0,0];t["textXpos"+s]=xpads[t["txA"+s]];t["textYpos"+s]=t["yP"+s];t["textWidth"+s]=t["w"+s]-xpads[2-t["txA"+s]];t["textHeight"+s]=t["h"+s];}t.dW=w-(__br.w3?0:bw);t.dH=h-(__br.w3?0:bw);if(t.ic){var icXo=t.icXo;var icYo=t.icYo;t.icXo-=(__br.w3?bw:0);t.icYo-=(__br.w3?bw:0);if(t.oSt){t.icXoOv=icXo-(__br.w3?obw:0);t.icYoOv=icYo-(__br.w3?obw:0);}else{t.icXoOv=t.icXo;t.icYoOv=t.icYo;}if(t.cSt){t.icXoCk=icXo-(__br.w3?cbw:0);t.icYoCk=icYo-(__br.w3?cbw:0);}else{t.icXoCk=t.icXoOv;t.icYoCk=t.icYoOv;}}if(b.ap){var arXoffset=b.arXoffset+b.arWidth;var arYoffset=b.arYoffset+b.arWidth;t.arXoffset=t.w-(arXoffset+(__br.w3?-bw:bw));t.arYoffset=t.h-(arYoffset+(__br.w3?-bw:bw));if(t.oSt){t.arXoffsetOv=t.wOv-(arXoffset+(__br.w3?-obw:obw));t.arYoffsetOv=t.hOv-(arYoffset+(__br.w3?-obw:obw));}else{t.arXoffsetOv=t.arXoffset;t.arYoffsetOv=t.arYoffset;}if(t.cSt){t.arXoffsetCk=t.wCk-(arXoffset+(__br.w3?-cbw:cbw));t.arYoffsetCk=t.hCk-(arYoffset+(__br.w3?-cbw:cbw))}else if(t.oSt){t.arXoffsetCk=t.arXoffsetOv;t.arYoffsetCk=t.arYoffsetOv;}else{t.arXoffsetCk=t.arXoffset;t.arYoffsetCk=t.arYoffset;}}if(b.sS){var dw=t.dW+b.iPd,dh=t.dH+b.iPd,bp=b.bPd;var sox=b.spIm?((t.w)/2-b.sepWidth/2):0,soy=b.spIm?((t.h)/2-b.sepHeight/2):0;if(b.oR=="h"){t.sepX=em(t.x+dw);t.sepY=em(b.spIm?(soy+bp):(b.spI+soy));}else{t.sepX=em(b.spIm?(sox+bp):(b.spI+sox));t.sepY=em(t.y+dh);}}};__B.prototype._gD=function(){var bw=2*this.bW,t=this;t.dW=t.w;t.dH=t.h;if(__br.w3){t.w=t.dW-bw;t.h=t.dH-bw;}else{if(t.bkC==""){t.opacity=100;}}t.eH=t.h;if(t.sS && !t.spIm){if(t.oR=="h"){t.sepWidth=t.spW;t.sepHeight=t.h-(2*t.spI);}else{t.sepWidth=t.w-(2*t.spI);t.sepHeight=t.spW;}}};if(__br.un){document.write(_sTs+mmfolder+"core/un.js"+_sTe);}


