function fixIE6flicker(fix) {
	try {
		document.execCommand("BackgroundImageCache", false, fix);
	} catch(err) { }
}
fixIE6flicker(true);

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function intOnly(i) {
if(i.value.length>0) {
i.value = i.value.replace(/[^\d]+/g, ''); 
}
}

var win= null;
function NewWindow(mypage,myname,w,h,scroll,resize){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable='+resize;
	  if (win){
		win.close();
		}
  win=window.open("http://www.canadiansky.co.uk/" + mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value == "http://www.americansky.co.uk/") {
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  
  } else if (selObj.options[selObj.selectedIndex].value == "http://www.canadiansky.co.uk/") {
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  
  } else {
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");}
  if (restore) selObj.selectedIndex=0;
  }
