/*
	# Copyright (c) 2008 Annie Preece.  
	#
	# For more information, see:
	#     http://www.anniepreece.com/
	#
*/			
	
// Code starts here

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)

{

  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}




function LoadGIF(image) {
	var rollover = document.images;
	if (rollover) {
		eval (image + '= new Image()');
		eval (image + '.src  = "images/' + image + '.gif"');
	}
}

//LoadGIF('global_nav_business_overon');

// For Image Swap
function roll(img_name, img_src) {
	
   document[img_name].src = "images/" + img_src; 
   //onmouseover="roll('sub_but', 'movedown.gif')" onmouseout="roll('sub_but', 'movetup.gif')"
   
}





/*
** copyright.js
** Version: 004 -- 06.22.00
*/

function include_copyright(startyear) {
	var	blob="";
	var msistartyear = 2001;
	var	today=new Date(); 
	var	thisyear = get_full_year(today);
	if (startyear < thisyear && startyear >= msistartyear) {
		blob += startyear + " - ";
	}
	blob += thisyear;
	blob = "Copyright &copy; " + blob;
	return blob;
}

/* 
** subroutine: get_full_year
** param1: d -> date.  any date object.
*/
function get_full_year(d) { // d is a date object
	yr = d.getYear();
	if (yr < 1000) {
	 	yr+=1900;
	}
	return yr;
}

/*For privacy policy/terms child window */
var popUpWin=0;
function popUpGalleryWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
	if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
  popUpWin.focus();
}

function PopupPic(sPicURL) { 
     vPopup = window.open( "popup.html?"+sPicURL, "vPopup",  
     "resizable=1,HEIGHT=200,WIDTH=200"); 
	 vPopup.focus();
   } 

