/* -- Adobe GoLive JavaScript Library */
CSStateArray=new Object;
CSCookieArray=new Object;
CSCookieValArray=new Object;
function CSWriteCookie(action){var name="DFT"+action[1];
var hrs=action[2];
var path=action[3];
var domain=action[4];
var secure=action[5];
var exp=new Date((new Date()).getTime()+hrs * 3600000);
var cookieVal="";
for(var prop in CSCookieArray){if(("DFT"+CSCookieArray[prop])==name){if(cookieVal !="")cookieVal+="&";
cookieVal+=prop+":"+escape(CSStateArray[prop]);}}
if(hrs !=0)
cookieVal+=";expires="+exp.toGMTString();
if(path !="")
cookieVal+=";path="+path;
if(domain !="")
cookieVal+=";domain="+domain;
if(secure==true)
cookieVal+=";secure";
document.cookie=name+'='+cookieVal;}
function CSReadCookie(action){var name="DFT"+action[1];
var cookies=document.cookie;
if(cookies=="")return;
var start=cookies.indexOf(name);
if(start==-1)return;
start+=name.length+1;
var end=cookies.indexOf(";", start);
if(end==-1)end=cookies.length;
var cookieVal=cookies.substring(start, end);
var arr=cookieVal.split('&');
for(var i=0;i < arr.length;i++){var a=arr[i].split(':');
CSStateArray[a[0]]=unescape(a[1]);}}
function CSDefineState(action){CSCookieArray[action[1]]=action[3];}
function CSSetState(action){CSStateArray[action[1]]=action[2];}
function CSInitState(action){if(typeof(CSStateArray[action[1]])=="undefined")
CSStateArray[action[1]]=action[2];}
function CSCheckState(action){var obj1=CSStateArray[action[1]];
var obj2=action[2];
if(typeof(obj1)=="object"){for(var i=0;i<obj1.length;i++){if(obj1[i] !=obj2[i])
return false;}
return true;}
var res;
var op=action[3];
if(op=="==")res=(CSStateArray[action[1]]==action[2]);
else if(op=="!=")res=(CSStateArray[action[1]] !=action[2]);
else if(op==">" )res=(CSStateArray[action[1]] >  action[2]);
else if(op==">=")res=(CSStateArray[action[1]] >=action[2]);
else if(op=="<" )res=(CSStateArray[action[1]] <  action[2]);
else if(op=="<=")res=(CSStateArray[action[1]] <=action[2]);
return res;}
CSInit=new Array;
function CSScriptInit(){if(typeof(skipPage)!="undefined"){if(skipPage)return;}
idxArray=new Array;
for(var i=0;i<CSInit.length;i++)
idxArray[i]=i;
CSAction2(CSInit, idxArray);}
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 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 */
}
function CSCloseWindow(){if (self.parent.frames.length !=0){self.parent.close()
}else{window.close()
}}
//  OpenPopUpLite 2.0.1 action by Nate Baldwin, www.mindpalette.com, copyright 2004
if (typeof MPStoreOpenWin2=="undefined")MPStoreOpenWin2=new Array();
function MPOpenPopupLite(action){var posX=0;
var posY=0;
if (action[4]==true){posX=Math.round((screen.availWidth/2)-(action[2]/2));
posY=Math.round((screen.availHeight/2)-(action[3]/2));}else{posX=action[12];
posY=action[13];}
if (action[16]==true){posX=0;
posY=0;
action[2]=screen.availWidth;
action[3]=screen.availHeight;}
for (i=5;i<12;i++){action[i]==true ? action[i]="yes" : action[i]="no";}
var windowOptions="";
windowOptions+="width="+action[2];
windowOptions+=",height="+action[3];
windowOptions+=",resizable="+action[11];
windowOptions+=",scrollbars="+action[5];
windowOptions+=",menubar="+action[6];
windowOptions+=",toolbar="+action[9];
windowOptions+=",directories="+action[7];
windowOptions+=",location="+action[10];
windowOptions+=",status="+action[8];
windowOptions+=",left="+posX;
windowOptions+=",top="+posY;
var thisPopup=window.open(action[15], action[1], windowOptions);
MPStoreOpenWin2[action[1]]=thisPopup;
if (action[14] !="" && action[14] !="#" && action[14] !="(EmptyReference!)" && action[14] !="(Empty Reference!)")
window.location=action[14];}
function CSSlideNewWindow(action){var wh=""
if (action[7]||action[8]||action[9]==true)wh=action[4]-125
else wh=action[4]
var wf="";
wf=wf+"width="+action[3];
wf=wf+",height="+wh;
wf=wf+",resizable="+(action[5] ? "yes" : "no");
wf=wf+",scrollbars="+(action[6] ? "yes" : "no");
wf=wf+",menubar="+(action[7] ? "yes" : "no");
wf=wf+",toolbar="+(action[8] ? "yes" : "no");
wf=wf+",directories="+(action[9] ? "yes" : "no");
wf=wf+",location="+(action[10] ? "yes" : "no");
wf=wf+",status="+(action[11] ? "yes" : "no");
if(navigator.appVersion.charAt(0)>=4){var sw=screen.width-20;
var sh=screen.height;
var newwidth=action[3];
var newheight=action[4];
var positionleft=(sw-newwidth)/2;
var positiontop=""
if (action[7]||action[8]||action[9]==true)positiontop=(sh-newheight)/3;
else positiontop=(sh-newheight)/2.5;}
newwindow=window.open(action[1],action[2],wf);
newwindow.focus()
if(navigator.appVersion.charAt(0)>=4){for(width1=1;width1 < positionleft;width1=width1+10)
newwindow.moveTo(width1,positiontop)
}}
//  Multi Preloader Action 1.0.2 by Nate Baldwin, www.mindpalette.com, copyright 2002
var MPMultiPreldCount1=0;
var MPMultiPreldArray1=new Array();
function MPMultiPreload(action){MPMultiPreldArray1[MPMultiPreldCount1]=new Array();
for (i=1;i<=20;i++){if (action[i] !="#" && action[i] !="(EmptyReference!)" && action[i] !="(Empty Reference)" && action[i] !=""){MPMultiPreldArray1[MPMultiPreldCount1][i]=new Image();
MPMultiPreldArray1[MPMultiPreldCount1][i].src=action[i];}}
MPMultiPreldCount1++;}
//  Close Popup Redirect Action 1.01 by Nate Baldwin, www.mindpalette.com, copyright 2002...
var MP_CPRcounter=0;
function MPCloseWin2(action){MP_CPRcounter++;
if (action[1] !="#" && action[1] !="<EmptyReference!)" && action[1] !="(Empty Reference)")self.opener.location=action[1];
self.close();}
function MPFocusWin2(){if (MP_CPRcounter==0)window.focus();}
window.onload=MPFocusWin2;
function CSOpenWindow(action){var wf="";
wf=wf+"width="+action[3];
wf=wf+",height="+action[4];
wf=wf+",resizable="+(action[5] ? "yes" : "no");
wf=wf+",scrollbars="+(action[6] ? "yes" : "no");
wf=wf+",menubar="+(action[7] ? "yes" : "no");
wf=wf+",toolbar="+(action[8] ? "yes" : "no");
wf=wf+",directories="+(action[9] ? "yes" : "no");
wf=wf+",location="+(action[10] ? "yes" : "no");
wf=wf+",status="+(action[11] ? "yes" : "no");
window.open(action[1],action[2],wf);}
function getCookie(thecookie){tempString=thecookie+"=";
if(document.cookie.length>0){start=document.cookie.indexOf(tempString);
if(start!=-1){end=document.cookie.indexOf(";",start);
if(end==-1){end=document.cookie.length;}
start+=tempString.length;
return unescape(document.cookie.substring(start,end))
}}}
function setCookie(thecookie,value,expire){cookieExpires=new Date
cookieExpires.setMonth(cookieExpires.getMonth()+6)
document.cookie=thecookie+"="+escape(value)+";expires="+cookieExpires.toGMTString();}
function testCookie(thecookie){if(getCookie(thecookie)){return(getCookie(thecookie));}else{return false;}}
function CSredPrompt(action){var thecookie=action[5]
if(testCookie(action[5])&& action[4]==true){location.href=getCookie(action[5]);}else{var x=0;}
function kill(){alert(action[3]);
x=1;
var enter=prompt(action[1],action[2]);
if (enter==action[6]){setCookie(action[5], action[7]);location.href=action[7];}
else if (enter==action[8]){setCookie(action[5], action[9]);location.href=action[9];}
else if (enter==action[10]){setCookie(action[5], action[11]);location.href=action[11];}
else if (enter==action[12]){setCookie(action[5], action[13]);location.href=action[13];}
else if (enter==action[15]){setCookie(action[5], action[16]);location.href=action[16];}
else if (enter==action[2]){kill();}
else if (enter==null)return
else  kill()
}
if (x==0){var enter=prompt(action[1],action[2]);
if (enter==action[6]){setCookie(action[5], action[7]);location.href=action[7];}
else if (enter==action[8]){setCookie(action[5], action[9]);location.href=action[9];}
else if (enter==action[10]){setCookie(action[5], action[11]);location.href=action[11];}
else if (enter==action[12]){setCookie(action[5], action[13]);location.href=action[13];}
else if (enter==action[14]){setCookie(action[5], action[15]);location.href=action[15];}
else if (enter==action[2]){kill();}
else if (enter==null)return
else  kill()
}}
function CSCSSRedirect(action){if (navigator.platform.indexOf("Win32")!=-1){os="windows"};
if (navigator.platform.indexOf("Mac")!=-1){os="mac"};
if (navigator.platform.indexOf("x")!=-1||navigator.platform.indexOf("BSD")!=-1||navigator.platform.indexOf("S")!=-1){os="unix"};
if (navigator.appName.indexOf("Microsoft")!=-1){browser="IE"};
if (navigator.appName.indexOf("Netscape")!=-1){browser="NN"};
if (navigator.appVersion.indexOf("4.")!=-1){version=4};
if (navigator.appVersion.indexOf("5.")!=-1){version=5};
var tag='<LINK REL="styleSheet" TYPE="text/css" HREF="'+action[2]+'" >';
var type=action[1];
if(type==0 && os=="mac" && browser=="NN" && version==4){document.write(tag)}
else 
if(type==1 && os=="mac" && browser=="NN" && version==5){document.write(tag)}
else 
if(type==2 && os=="windows" && browser=="NN" && version==4){document.write(tag)}
else 
if(type==3 && os=="windows" && browser=="NN" && version==5){document.write(tag)}
else 
if(type==4 && os=="unix" && browser=="NN" && version==4){document.write(tag)}
else 
if(type==5 && os=="unix" && browser=="NN" && version==5){document.write(tag)}
else 
if(type==6 && os=="mac" && browser=="IE"){document.write(tag)}
else 
if(type==7 && os=="windows" && browser=="IE"){document.write(tag)}}
function CSSearchEngine(action){var form=action[1]
var elem=action[2]
var theEntry  
if(action[3]==true){theEntry=action[4]}
else{theEntry=document.forms[form].elements[elem].value}
var type=action[5];
if(type==0)engine="http://search.adobe.com/cgi-bin/query?mss=simple&pg=q&what=web&fmt=.&where=www_search_main&superq="+theEntry+"&rd=all&q="+theEntry+"&x=39&y=10" /* Adobe.com */
else if(type==1)engine="http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q="+theEntry /*Altavista */ 
else if(type==2)engine="http://groups.google.com/groups?q="+theEntry+"&hl=en&lr=&safe=off&btnG=Google+Search&site=groups";/* Google Deja News (Usenet)*/ 
else if(type==3)engine="http://www.excite.com/search.gw?trace=a&search="+theEntry;/* Excite */
else if(type==4)engine="http://www.search.hotbot.com/hResult.html?SM=MC&MT="+theEntry+"&DV=7&RG=.com&DC=10&DE=2&OPs=MDRTP&_v=2&DU=days&SW=web&search.x=23&search.y=8";/* HotBot */
else if(type==5)engine="http://www.google.com/search?q="+theEntry+"&btnG=Google+Search" /* Google */
else if(type==6)engine="http://search.msn.com/results.asp?RS=CHECKED&FORM=MSNH&v=1&q="+theEntry;/* MSN */
else if(type==7)engine="http://www.lycos.com/cgi-bin/pursuit?query="+theEntry+"&matchmode=and&cat=lycos&x=33&y=10";/* Lycos */
else if(type==8)engine="http://shopper.cnet.com/shopping/search/results/1,10214,0-1257,00.html?tag=st%2Esh%2E1257%2Esbsr&qt="+theEntry+"&cn=&ca=1257" /* Shopper.com */
else if(type==9)engine="http://search.excite.com/search.gw?c=web&lk=webcrawler&onload=&s="+theEntry;/* Webcrawler */
else if(type==10)engine="http://search.yahoo.com/bin/search?p="+theEntry /* Yahoo */
if (theEntry==""){alert("Please enter a search keyword!")}
else{newWindow=window.open(engine, action[6],"toolbar,location,directories,status,menubar,scrollbars,resizable=1")}}
