function feedback()
{
	window.open("addceleb.htm","celeb","width=395,height=520,scrollbars,resizable");

}
function order()
{
	window.open("order.php","celeb","width=405,height=578,scrollbars,resizable");

}

function tellafriend()
{
	window.open("blank.htm","celeb","width=340,height=340,resizable");
	document.f.submit();
}
function vote()
{
	window.open("blank.htm","celeb","width=220,height=220,resizable");
	document.v.submit();
}

var agt=navigator.userAgent.toLowerCase();
// *** BROWSER VERSION ***
// Note: On IE5, these return 4, so use is_ie5up to detect IE5.
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
// Note: Opera and WebTV spoof Navigator.  We do strict client detection.
// If you want to allow spoofing, take out the tests for opera and webtv.
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_nav2 = (is_nav && (is_major == 2));
var is_nav3 = (is_nav && (is_major == 3));
var is_nav4 = (is_nav && (is_major == 4));
var is_nav4up = (is_nav && (is_major >= 4));
var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) );
var is_nav6 = (is_nav && (is_major == 5));
var is_nav6up = (is_nav && (is_major >= 5));
var is_gecko = (agt.indexOf('gecko') != -1);
var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3    = (is_ie && (is_major < 4));
var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
var is_ie4up  = (is_ie && (is_major >= 4));
var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

function MM_openBrWindow(theURL,winName,features) 
{ //v2.0  
window.open(theURL,winName,features);
}

function readCookie(name) 
{ 
  var cookieValue = ""; 
  var search = name + "="; 
  if(document.cookie.length > 0) 
  { 
	offset = document.cookie.indexOf(search); 
    	if (offset != -1) 
    	{ 
     		offset += search.length; 
     		end = document.cookie.indexOf(";", offset); 
      		if (end == -1) end = document.cookie.length; 
      		cookieValue = unescape(document.cookie.substring(offset, end)) 
   	} 
  } 
  return cookieValue; 
}

function writeCookie(name, value, hours) 
{ 
  var expire = ""; 
  if(hours != null) 
  { 
    expire = new Date((new Date()).getTime() + hours * 3600000); 
    expire = "; expires=" + expire.toGMTString(); 
  } 
  document.cookie = name + "=" + escape(value) + expire; 
} 

function checkVersion() 
{
	var hadPopup = readCookie("etPopup");
	if (is_ie5up || is_nav6up) 
	{
		true;
	} 
	else 
	{
		if (hadPopup != "yes") 
		{
			MM_openBrWindow('oldbrowser.htm','upgrade','scrollbars=yes,width=310,height=250');
			writeCookie("etPopup", "yes", 24);
		}		
	}
}


checkVersion();