function RunFoo() {
    document.write('<object type=\"application/x-shockwave-flash\" data=\"/_basics/flash/header.swf\" width=\"760\" height=\"230\" id=\"flashbanner\" style=\"-moz-user-focus:ignore\">\n');
    document.write('<param name=\"movie\" value=\"/_basics/flash/header.swf\" />\n');
    document.write('<param name=\"quality\" value=\"high\" />\n');
    document.write('<param name=\"bgcolor\" value=\"#ffffff\" />\n');
    document.write('<param name=\"quality\" value=\"high\" />\n');
    document.write('</object>\n');
}

var slideID;
var thumbClicked=false;
var picNr;
function openPopup(url,ysize,xsize) {
	!xsize?width=450:width=xsize;
	!ysize?height=530:height=ysize;
	window.open(url,'marpopup','width=' + width + ',height=' + height +',scrollbars=yes');
}
function getWindowSize() {
	winWidth = (document.all)?document.body.clientWidth:window.innerWidth;
	winHeight = (document.all)?document.body.clientHeight:window.innerHeight;
}

var pic1 = new Image();
var pic2 = new Image();
var pic3 = new Image();
var pic4 = new Image();
var pic5 = new Image();
var pic6 = new Image();
var pic7 = new Image();
var pic8 = new Image();
var pic9 = new Image();
var pic10 = new Image();
var pic11 = new Image();
pic1.src = "_images/switch/001.jpg";
pic2.src = "_images/switch/002.jpg";
pic3.src = "_images/switch/003.jpg";
pic4.src = "_images/switch/004.jpg";
pic5.src = "_images/switch/005.jpg";
pic6.src = "_images/switch/006.jpg";
pic7.src = "_images/switch/007.jpg";
pic8.src = "_images/switch/008.jpg";
pic9.src = "_images/switch/009.jpg";
pic10.src = "_images/switch/010.jpg";
pic11.src = "_images/switch/011.jpg";
var pictures = new Array(pic1, pic2, pic3, pic4, pic5, pic6, pic7, pic8, pic9, pic10, pic11);

MM_preloadImages('_images/switch/001.jpg','_images/switch/002.jpg','_images/switch/003.jpg','_images/switch/004.jpg','_images/switch/005.jpg','_images/switch/006.jpg','_images/switch/007.jpg','_images/switch/008.jpg','_images/switch/009.jpg','_images/switch/010.jpg','_images/switch/011.jpg')

function changepic(whichpic) {	
  if (document.all) {
    document.all.picbig.filters.blendTrans.Apply();
    document.all.picbig.src = pictures[whichpic - 1].src;
    document.all.picbig.filters.blendTrans.Play();
  } else {
    document.images.picbig.src = pictures[whichpic - 1].src;
  }
}

function initSlide() {
	for (i=0;i<pictures.length;i++) {
		if (pictures[i].src==document.images.picbig.src) {
			picNr = i;
			slideIt();			
		}
	}
}

function slideIt() {
	if (picNr<pictures.length) {
		picNr++;
	} else {
		picNr=1;
	}
	
	if (!thumbClicked) {
		slideID = setTimeout("slideIt()",5000);
	}
	changepic(picNr);
}

function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this header

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }  
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;  
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(){
  if (isIE||isNN) whichDog.style.visibility="hidden";
  else if (isN4) document.theLayer.visibility="hide";
}

function showMe(){
  if (isIE||isNN) whichDog.style.visibility="visible";
  else if (isN4) document.theLayer.visibility="show";
}

//document.onmousedown=ddInit;
//document.onmouseup=Function("ddEnabled=false");