/* Copyright FREE WEB THEMES and PRO TEMPLATES c 1999 - 2008 */
/* Professional web design to high standards */
/* NO copy or use of original material by FWT without permission */


/* =======  bug fix for Netscape 4: reloads styles if Nav4 resized===== */
function DC_reloadPage(init) {  
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.DC_pgW=innerWidth; document.DC_pgH=innerHeight; onresize=DC_reloadPage; }}
else if (innerWidth!=document.DC_pgW || innerHeight!=document.DC_pgH) location.reload();
}
DC_reloadPage(true);

/* ====================================================== */
/* Changes appearance of selected menu item to indicate which page    */
/* is being viewed */
function chgNavBar(item)
{
if(document.getElementById)
	{
	navOption = document.getElementById(item);
	navOption.style.borderBottom = "1px solid #CCC";
	navOption.style.backgroundColor = "#DDF";
	}
}

/* ====================================================== */
/* Dynamically Write Email or Address so spam spiders do not        */
/*  pick up email or address details */

function writeFWTEmail(who)
{
	document.write("<a href='mailto:"+who+"&#064;freewebthemes.co.uk'>");
	document.write(who);
	document.write("@");
	document.write("freewebthemes");
	document.write("(dot)co(dot)uk");
	document.write("</a>");
}


/* ---------------------------------------------------------- */
// Copyright 2001, 2002, 2003 2004 2005 2006 2007 2008 Free Web Themes       //
// open new sized window script							      //
// sets toolbars, scrolls, etc                             	  //
/* ---------------------------------------------------------- */

function openWindow(strURL)
{
   if (strURL)
   {
      window.open(strURL, "holidaytheme","status=0,toolbar=0,directories=0,location=0,menubar=0,scrollbars=1,resizable=1,width=776,height=500,top=10,left=10");
     //location.reload(true);
   }
}
function openTheme(strURL)
{
   if (strURL)
   {
      window.open(strURL, "theme","status=0,toolbar=0,directories=0,location=0,menubar=0,scrollbars=1,resizable=1,width=790,height=500,top=10,left=10");
     //location.reload(true);
   }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/* ====================================================== */

function Popup1(url){
	window.open(url,'window','width=500, height=500, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no');
}



/* ======== MONSTER SCRIPTS=============================== */

// var affInterfaceOptions = 'aff=decook&skin=21&cols=3&rows=4&shop=n1-green&currency=0&locale=en';
var affInterfaceOptions = 'aff=decook&cols=3&rows=4&skin=21&sadult=off&sp=2&bgcolor=%23FFFFFF&type=wt&iw=530&ih=850&category=0&frname=frmTemplate&pr=yes&locale=en&src=no&nt=no';

function IncludeAffInterface(options,file){
	if(!file) file = 'interface';
	options = affInterfaceOptions + (options ? '&'+options : '');
	document.write('<SCRIPT type="text/javascript" language="JavaScript" src="http://www.mytemplatestorage.com/codes/'+file+'.php?'+options+'"><'+'/SCRIPT>');
}

function Popup2(url){
	window.open(
		url,
		'window',
		'width=600, height=600, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}
// Hide "www.mytemplatestorage.com" from status bar
function HideStatus(){
	window.status = document.readyState!="complete" ?
		"Loading..." : window.defaultStatus;
}
//document.onreadystatechange = HideStatus;


/* Ad / Banner Writer c2004 */
function writeAffAd()
{
	// get a random number to choose from Ads array
	document.write("<a href=\'https://www.paypal.com/uk/mrb/pal=BZCS63GWL5X9N");
	document.write("' target='_blank'>");
	document.write("<img src='http://images.paypal.com/en_GB/i/bnr/paypal_mrb_banner.gif");
	document.write("' width='468' height='60' border='0'/></a>");
}

/* *** END OF 468 x 60 landscape banners ******** */