var message="Alert! All images on this web site are protected by International Copyright Laws. Unauthorized use is MOST STRICTLY FORBIDDEN! For more info about this read the Terms and Conditions.";
function copyR(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}

function popUp(){
window.open("image.php?pic="+pic,"pop","resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width=780,height=340,left=0,top=0");
}

function format(text){
str = text.toString().replace(/\$|\,/g,'');
if (isNaN(str)) str = "0";   
cents = Math.floor((str*100+0.5)%100);
str = Math.floor((str*100+0.5)/100).toString();
   if (cents < 10) cents = "0" + cents;
   for (var j = 0; j < Math.floor((str.length-(1+j))/3); j++) {
      str = str.substring(0,str.length-(4*j+3))+'.'+str.substring(str.length-(4*j+3));
	}
str += "." + cents
return str;
}

function getCookie() {

  var dc = document.cookie;
  var prefix = "weather=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
//  alert(dc.substring(begin + prefix.length, end))
	mydata = dc.substring(begin + prefix.length, end)
 //data = mydata.split("|");
//	document.form2.cur.selectedIndex = mydata;
//	document.form2.cur1.selectedIndex = mydata;
	if(mydata != "" && document.all){
		display(mydata); // select the logged region
		mydata=Number(mydata)+1;
		cmenu.className='weather'+mydata
	}
}

function doCookie(x){
// set cookie
	document.cookie = "weather="+x+"; expires=Thu, 01-Jan-2100 00:00:01 GMT";
}

function display(x){
//alert(x);
for(i=0;i<=2;i++){
	document.all['row'+i].style.display ='none'
}
document.all['row'+x].style.display ='inline'
doCookie(x);// log current region
}

function builtMenu(){
if(document.all){
document.write('<table width="500" border="0" cellpadding="0" cellspacing="0"  background="../images/weather.gif">');
document.write('<tr><td id="cmenu" class="weather1">');
document.write('<table width="500" border="0" align="center" cellpadding="1" cellspacing="0" height="22">');
document.write('<tr><td width="2"><img src="../images/space.gif" width="1" height="8"></td>');
document.write('<td width="40" onMousedown="cmenu.className=\'weather1\';display(0)" style="cursor:hand">&nbsp;</td>');
document.write('<td width="114" onMousedown="cmenu.className=\'weather2\';display(1);" style="cursor:hand">&nbsp;</td>');
document.write('<td width="105" onClick="cmenu.className=\'weather3\';display(2);" style="cursor:hand">&nbsp;</td>');
document.write('<td>&nbsp;</td></tr></table></td></tr></table>');
}
}

function adjustIE(){
if(document.all){
for(i=0;i<=2;i++){
	document.all['row'+i].style.display ='none'	
	document.getElementById("item"+i).className='courseDetailsTableIE';
	document.getElementById("itemHeader"+i).className='courseDetailsHeaderIE';
	document.getElementById("itemHeader"+i).style.display ='none';
//	document.getElementById("cheight"+i).height = 0;
	document.getElementById("item"+i).height=250;
}
document.getElementById("cellBack").className='courseCellBack';
document.getElementById("mainTable").className='cmainTable';
document.all['row'+0].style.display ='inline'	
}

}

var pre2=new Image();
pre2.src= "../images/map2.gif";

var pre3=new Image();
pre3.src= "../images/map3.gif";



