function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
/*
   Nirvana Float Layer by Browser Position 2.1.3
   Original By: Eddie Traversa. All rights reserved.
   Updated By: Brad Halstead, http://www.prettylady2.net
*/
window.onerror=null;
var topMargin = 40
var slideTime = 1200
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
function layerObject(id,right) {
  if (ns6){
    this.obj = document.getElementById(id).style;
    this.obj.right = right;
    return this.obj;
  } else if(ie4) {
    this.obj = document.all[id].style;
    this.obj.right = right;
    return this.obj;
  } else if(ns4) {
    this.obj = document.layers[id];
    this.obj.right = right;
    return this.obj;
  }
}
function layerSetup() {
  floatLyr = new layerObject('floatLayer2', pageWidth*.01);
  window.setInterval("main()", 10)
}
function floatObject2() {
  if (ns4 || ns6) {
    findHt = window.innerHeight;
  } else if(ie4) {
    findHt = document.body.clientHeight;
  }
}
function main() {
  if (ns4) {
    this.currentY = document.layers["floatLayer2"].top;
    this.scrollTop = window.pageYOffset;
    mainTrigger();
  } else if(ns6) {
    this.currentY = parseInt(document.getElementById('floatLayer2').style.top);
    this.scrollTop = scrollY;
    mainTrigger();
  } else if(ie4) {
    this.currentY = floatLayer2.style.pixelTop;
    this.scrollTop = document.body.scrollTop;
    mainTrigger();
  }
}
function mainTrigger() {
  var newTargetY = this.scrollTop + this.topMargin
  if ( this.currentY != newTargetY ) {
    if ( newTargetY != this.targetY ) {
      this.targetY = newTargetY
      floatStart();
    }
    animator();
  }
}
function floatStart() {
  var now = new Date()
  this.A = this.targetY - this.currentY 
  this.B = Math.PI / ( 2 * this.slideTime )
  this.C = now.getTime()
  if (Math.abs(this.A) > this.findHt) {
    this.D = this.A > 0 ? this.targetY - this.findHt : this.targetY + this.findHt
    this.A = this.A > 0 ? this.findHt : -this.findHt
  } else {
    this.D = this.currentY
  }
}
function animator() {
  var now = new Date()
  var newY = this.A * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D
  newY = Math.round(newY)
  if (( this.A > 0 && newY > this.currentY ) || ( this.A < 0 && newY < this.currentY )) {
  if ( ie4 )document.all.floatLayer2.style.pixelTop = newY
  if ( ns4 )document.layers["floatLayer2"].top = newY
  if ( ns6 )document.getElementById('floatLayer2').style.top = newY + "px"
  }
}

function detectIt() {
  if(ns6||ns4) {
    pageWidth=innerWidth;
    pageHeight=innerHeight;
    layerSetup();
    floatObject2();
  } else if(ie4) {
    pageWidth=document.body.clientWidth;
    pageHeight=document.body.clientHeight;
    layerSetup();
    floatObject2();
  }
}

function forceIt() {
  history.go(0);
}
function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
