if (document.images) {

	menu_homeOn = new Image
	menu_homeOff = new Image
	menu_homeOn.src = '../skin1/EMGimg/menu_home_off.jpg'
	menu_homeOff.src = '../skin1/EMGimg/menu_home_on.jpg'

	menu_newOn = new Image
	menu_newOff = new Image
	menu_newOn.src = '../skin1/EMGimg/menu_new_users_off.jpg'
	menu_newOff.src = '../skin1/EMGimg/menu_new_users_on.jpg'

	menu_myaccountOn = new Image
	menu_myaccountOff = new Image
	menu_myaccountOn.src = '../skin1/EMGimg/menu_my_account_off.jpg'
	menu_myaccountOff.src = '../skin1/EMGimg/menu_my_account_on.jpg'

	menu_mymoviesOn = new Image
	menu_mymoviesOff = new Image
	menu_mymoviesOn.src = '../skin1/EMGimg/menu_my_movies_off.jpg'
	menu_mymoviesOff.src = '../skin1/EMGimg/menu_my_movies_on.jpg'

	menu_wishlistOn = new Image
	menu_wishlistOff = new Image
	menu_wishlistOn.src = '../skin1/EMGimg/menu_wish_list_off.jpg'
	menu_wishlistOff.src = '../skin1/EMGimg/menu_wish_list_on.jpg'

	menu_customerserviceOn = new Image
	menu_customerserviceOff = new Image
	menu_customerserviceOn.src = '../skin1/EMGimg/menu_customer_service_off.jpg'
	menu_customerserviceOff.src = '../skin1/EMGimg/menu_customer_service_on.jpg'

	menu_contactusOn = new Image
	menu_contactusOff = new Image
	menu_contactusOn.src = '../skin1/EMGimg/menu_contact_us_off.jpg'
	menu_contactusOff.src = '../skin1/EMGimg/menu_contact_us_on.jpg'

	menu_faqOn = new Image
	menu_faqOff = new Image
	menu_faqOn.src = '../skin1/EMGimg/menu_faq_off.jpg'
	menu_faqOff.src = '../skin1/EMGimg/menu_faq_on.jpg'

	menu_helpOn = new Image
	menu_helpOff = new Image
	menu_helpOn.src = '../skin1/EMGimg/menu_help_off.jpg'
	menu_helpOff.src = '../skin1/EMGimg/menu_help_on.jpg'

	}

else

	{

	menu_homeOn = ""
	menu_homeOff = ""
	menu_newOn = ""
	menu_newOff = ""
	menu_myaccountOn = ""
	menu_myaccountOff = ""
	menu_wishlistOn = ""
	menu_wishlistOff = ""
	menu_customerserviceOn = ""
	menu_customerserviceOff = ""
	menu_contactusOn = ""
	menu_contactusOff = ""
	menu_helpOn = ""
	menu_helpOff = ""
	menu_faqOn = ""
	menu_faqOff = ""
}


function popSmallWindow(URL, x, y)	{
  	newWindow = window.open(URL,"popSmall","width="+x+",height="+y+"");
	}

function popSLWindow(URL, x, y) {
        newWindow = window.open(URL,"sl_player","width="+x+",height="+y+"");
        }

function openHelpWindow(path)
{
	hw=window.open(path,"helpwin","height=565,width=525,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
if((navigator.userAgent.toLowerCase().indexOf("msie")==-1)||(parseInt(navigator.appVersion)>=5))
	hw.focus();
}

function checkIfSpecialCharacter(event) {


   if (event.keyCode){
      key = event.keyCode
}
   else if (event.which){
      key = event.which;
}
   if ((key> 31 && key< 45) || (key > 45 && key< 48)|| (key > 57 && key < 65) || (key > 90 && key < 95) || (key > 95 && key < 97) ||  (key > 122)) {  
    alert("Illegal character: " + String.fromCharCode(key)  + "\n\nOnly Numbers, Letters, _ (underscore) and - (dash) are allowed!");
    event.returnValue = false;
    return false;
  }
}

function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
function setCookie(cookieName,cookieValue,nDays,path)
{
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString()
                 + ";path="+path;
}



function displayRandomImage()
{

	var Spot = 0;
	Spot = Math.round(3*Math.random());
		Spot += 1;


	returnVal = '<img src="../skin1/EMGimg/start' + Spot + '.jpg" border=0 width=180 height=240 alt="pay per minute hardcore videos">';
		return returnVal;
}

function popPlayerWindow(uri)
{
        //var uri = "player.emgp?sid=" + sid + "type=" + type;

        popWin = window.open(uri,"sl_player","height=700,width=774,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no,location=no,titlebar=no");
        //hw=window.open(path,"helpwin","height=565,width=525,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
        return (popWin);
}
/******
function local_link(that, url)
{
        if (that == 'F' || that == 'SL' || that == 'POP')
        {
                //alert(url);
                VirtualAgentSuspend = 'stop';
                //alert(url + ':::' + VirtualAgentSuspend);
                return url;
                //return true;
        }
        else
        {
                url = that.href;
        }

        VirtualAgentSuspend = 'stop';

        //alert(url + ':::' + VirtualAgentSuspend);

        return true;
}
****/
function local_link(that, url)
{
}

function checkEmail(email)
{

var goodEmail = email.value.search(/^[^\.][A-Za-z0-9_\-\.]*[^\.]\@[^\.][A-Za-z0-9_\-\.]+((\.com)|(\.net)|(\.edu)|(\.se)|(\.fi)|(\.cc)|(\.tv)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.biz)|(\.us)|(\.bizz)|(\.coop)|(\..{2,2}))[ ]*$/gi);

if (goodEmail == -1)
{
         alert("E-mail address is invalid! Please correct");
         email.focus();
         email.select();
    return false;
}
}
