/************************************************* © Copyright 2006 - 2010 Tres Media Group, Inc. The code contained within cannot be reproduced or modified without the expressed permission of: Tres Media Group, Inc. 5105 Hwy 33 Farmingdale, NJ 07727 USA 732-751-0253 erik@tresware.com or dave@tresware.com *************************************************/ /************************************************* This file last updated: 6/8/2010 7:17:33 AM *************************************************/ // multiple onloads now possible using this: window.onload = makeOnload(window.onload, myNewFunction ); function makeOnload(function1, function2) { return function() { if(function1) function1(); if(function2) function2(); } } // msgfade ie5 = (document.all && document.getElementById); ns6 = (!document.all && document.getElementById); var opac = 100; function fddiv() { if(opac>0) { opac-=10; if(ie5) document.getElementById('msgfade').filters.alpha.opacity = opac; if(ns6) document.getElementById('msgfade').style.MozOpacity = opac/100; setTimeout('fddiv()',100); } else { document.getElementById('msgfade').style.display = 'none'; } } // -- function ShowHide(thisId, thisPhraseId, thisHow) { var thisPhraseId = (thisPhraseId == null) ? '' : thisPhraseId; var thisHow = (thisHow == null) ? 'inline' : thisHow; if(thisPhraseId.length > 0) { var thisHide = document.getElementById(thisPhraseId).innerHTML.replace(/don\'t/, ''); var thisShow = 'don\'t ' + thisHide; } if(document.getElementById(thisId).style.display == 'none') { document.getElementById(thisId).style.display=thisHow; if(thisPhraseId.length > 0) { document.getElementById(thisPhraseId).innerHTML=thisShow; } } else { document.getElementById(thisId).style.display='none'; if(thisPhraseId.length > 0) { document.getElementById(thisPhraseId).innerHTML=thisHide; } } return false; } // -- function imgSwap(thisId,img1,img2) { if(document.getElementById(thisId).src == ''+img1) { document.getElementById(thisId).src=img2; } else { document.getElementById(thisId).src=img1; } } if(!window.XMLHttpRequest) { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var i=0; i" img.outerHTML = strNewHTML i = i-1 } } } } // Script Source: CodeLifter.com Copyright 2003 // link PositionX = 100; PositionY = 100; defaultWidth = 640; defaultHeight = 480; var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; if (parseInt(navigator.appVersion.charAt(0))>=4){ var isNN=(navigator.appName=="Netscape")?1:0; var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;} var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY; var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY; function popImage(imageURL,imageTitle){ if (isNN){imgWin=window.open('about:blank','',optNN);} if (isIE){imgWin=window.open('about:blank','',optIE);} with (imgWin.document){ writeln('Loading...');writeln(''); writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){'); writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}'); writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);'); writeln('width=300-(document.body.clientWidth-document.images[0].width);'); writeln('height=300-(document.body.clientHeight-document.images[0].height);'); writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}'); writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln(''); writeln(''); writeln(''); close(); }return false;} // search url function php_urlencode (str) {str = escape(str);return str.replace(/[*+\/@]|%20/g,function (s) {switch (s) {case '*': s = '%2A'; break;case '+': s = '%2B'; break;case '/': s = '%2F'; break;case '@': s = '%40'; break;case '%20': s = '+'; break;}return s;});}