// Provided by MyFreeTemplates.com
<!--
function MM_preloadImages() { //v3.0
  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() { //v3.0
  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) { //v4.01
  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() { //v3.0
  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 showlayer(filename,e,x,y,imageHeight){	
	hidelayer();	
	document.getElementById("displayImage").innerHTML = '<img src="images/' + filename	+ '.gif" alt="" hspace="3" vspace="3">';		
	var DIVelement = document.getElementById("displayImageDiv");						
	var ie5 = (document.getElementById && document.all); 
	var ns6 = (document.getElementById && !document.all);
	 
	if(DIVelement.style.display == "block" || DIVelement.style.visibility == "visible"){
		hideMessageMenuDIV();
	}else{									
		Xpos= (ie5)?event.x:(ns6)?clientX=x:false;
  		Ypos= (ie5)?event.y:(ns6)?clientY=y:false;				
		if(ie5){					    	
			DIVelement.style.left = (document.body.scrollLeft+Xpos) - 40;
			DIVelement.style.top = (document.body.scrollTop+Ypos) - imageHeight;}
		if(ns6){
			DIVelement.style.left = Xpos - 40;
			DIVelement.style.top = Ypos - (imageHeight - 48);}
		DIVelement.style.display = "block";
		DIVelement.style.visibility="visible";	
	}		
}
function hidelayer(){		
	document.getElementById("displayImageDiv").style.visibility = "hidden";
	document.getElementById("displayImageDiv").style.display = "none"; 
}
//Drag Display window
var ie5 = (document.getElementById && document.all);
var ns6 = (!document.all && document.getElementById);
var timerID = null;
var active = 0;

function start(windowName, contentName){
	if(ie5 || ns6){
		dragWind = document.getElementById(windowName);
		dragCont = document.getElementById(contentName);
		y = coordsY-parseInt(dragWind.style.top);
		x = coordsX-parseInt(dragWind.style.left);
		dragWind.style.zIndex = (start.zCount++);
		active=1;
	}
}

start.zCount=0;
function drag(e){
	if(ie5 || ns6){
		coordsY = ns6?e.clientY:event.clientY;
		coordsX = ns6?e.clientX:event.clientX;
		if(active){
			dragWind.style.top = coordsY-y;
			dragWind.style.left = coordsX-x;
		}
	}
}

function closeWin(){
	if(ie5 || ns6){
		dragWind.style.left= -3000;
	}
}

function maxWin(winMaxWidth, winMaxHeight){
	if(ie5 || ns6){
		dragWind.style.width = winMaxWidth;
		dragWind.style.height = winMaxHeight;
		dragCont.style.width = ns6?winMaxWidth:winMaxWidth-6;
		dragCont.style.height = ns6?winMaxHeight-20:winMaxHeight-24;
	}
}

function minWin(winMinWidth, winMinHeight){
	if(ie5 || ns6){
		dragWind.style.width = winMinWidth;
		dragWind.style.height = winMinHeight;
		dragCont.style.width = ns6?winMinWidth:winMinWidth-6;
		dragCont.style.height = ns6?winMinHeight-20:winMinHeight-24;
	}
}

function openWin(windowName, contentName, topWin, leftWin, winMinWidth, winMinHeight){
	if(ie5 || ns6){
		dragWind = document.getElementById(windowName);
		dragCont = document.getElementById(contentName);
		dragWind.style.visibility = "visible";
		dragWind.style.top = topWin;
		dragWind.style.left = leftWin;
		dragWind.style.width = winMinWidth;
		dragWind.style.height = winMinHeight;
		dragCont.style.top = 20;
		dragCont.style.left = 0;
		dragCont.style.width = ns6?winMinWidth:winMinWidth-6;
		dragCont.style.height = ns6?winMinHeight-20:winMinHeight-24;
		dragWind.style.zIndex = (start.zCount++);
	}
}

function dragInit(){
	if(ie5 || ns6){
		imgs = document.getElementById("container").getElementsByTagName("IMG");
		for(var i=0; i<imgs.length;i++){
			imgs[i].style.cursor = (ie5)?"hand":"pointer";
			imgs[i].ondragstart = new Function("return false");
		}
		openWin('wind1','cont1',50,300,300,200);
	}
}

document.onmousemove = drag;
document.onmouseup = new Function("active=0");
document.onselectstart = new Function("return false");
//-->
