<!--
function refresh()
{
    window.location.reload( false );
}
//-->
//popup window for images and
//open links in new window
//theme switcher

if(top != self) {
	top.location = location
}

 if(top != self) {
	top.location = location
}
<!--
function MDM_openWindow(theURL,winName,features)
{
  var _W=window.open(theURL,winName,features);
      _W.focus();
      _W.moveTo(10,20);
}
<!---->
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 10;
PositionY = 20;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 700;
defaultHeight = 700;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose =false;

// Do not edit below this line...
// ================================
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('<html><head><title>Loading...<\/title><style>body{margin:0px;}<\/style>');writeln('<sc'+'ript>');
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(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(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('<\/sc'+'ript>');
if (!AutoClose) writeln('<\/head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('<\/head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"><\/body><\/html>');
close();
}}
//external rel to open links in new window follows
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
//end of external
/*\Theme Switcher, Cookies Handler and Event Handler combo (IE 5+Mac, IE5.5+Win, Moz)
 * by: <mailto:liorean@user.bip.net>
 * url: <http://liorean.web-graphics.com/scripts/themeswitch-t.html>
 *
 *  Event Handler is based on an original by Tim Morgan <http://www.timmorgan.info/>
\*/

// Event Handler
var event={
  Add:function(f){event.col[event.col.length]=f;if(typeof window.addEventListener!='undefined')window.addEventListener('load',f,false);else if(!event.ieSet)if(typeof document.onreadystatechange!='undefined')document.onreadystatechange=event.onload;event.ieSet=true;return(typeof window.addEventListener!='undefined')},
  onload:function(){var m=/mac/i.test(navigator.platform);if(typeof document.readyState!='undefined')if(m?document.readyState!='interactive':document.readyState!='complete')return;for(var i=0,f;(f=(i<event.col.length)?event.col[i]:null);i++)f();return},
  ieSet:false,
  col:[]
};

// Cookies Handler
var cookie={
  Get:function(n){var re=new RegExp(n+'=([^;]*);?','gi');var r=re.exec(document.cookie)||[];return unescape(r.length>1?r[1]:null)},
  Set:function(n,v,e,p,d,s){var t=new Date;if(e)t.setTime(t.getTime()+(e*8.64e7));document.cookie=n+'='+escape(v)+'; '+(!e?'':'; expires='+t.toUTCString())+(!p?'':'; path='+p)+(!d?'':'; domain='+d)+(!s?'':'; secure')},
  Del:function(n,p,d){var t=cookie.Get(n);document.cookie=n+'='+(!p?'':'; path='+p)+(!d?'':'; domain='+d)+'; expires=Thu, 01-Jan-70 00:00:01 GMT';return t},
  Sup:function(){cookie.Set('c',true);return cookie.Del('c')}
};

// Themeswitch Handler
var style={
  Set:function(t){for(var i in this.col)for(var j=0,f;(f=(j<this.col[i].length)?this.col[i][j]:null);j++)f.disabled=i!=t?true:false;},
  Get:function(){for(var i in this.col)if(!this.col[i][0].disabled)return i;return this.Pref()},
  Pref:function(){for(var i in this.col)if(!this.col[i][0].disabled)return i;return null},
  sum:function(){var s=document.styleSheets,i=0;for(var f;(f=(i<s.length)?s[i]:null);i++)switch(f.title){case '':break;default:switch(typeof this.col[f.title]){case 'object':this.col[f.title][this.col[f.title].length]=f;break;default:this.col[f.title]=[f]}}},
  onload:function(){style.sum();if(cookie.Sup()){var c=cookie.Get('style');style.Set(c||style.Pref())}},
  onunload:function(){if(cookie.Sup()){var s=style.Get();cookie.Set('style',s,356,'/')}},
  col:{}
};

event.Add(style.onload);
window.onunload=style.onunload;
