﻿
		logout = new Image();
		logout.src = "images/Logout_1a.gif";
		logouton = new Image();
		logouton.src = "images/Logout_2a.gif";

		cert = new Image();
		cert.src = "images/GetCerified_1a.gif";
		certon = new Image();
		certon.src = "images/GetCerified_2a.gif";

		contest = new Image();
		contest.src = "images/contest_1a.gif";
		conteston = new Image();
		conteston.src = "images/contest_2a.gif";

		feature = new Image();
		feature.src = "images/help_1.gif";
		featureon = new Image();
		featureon.src = "images/help_2.gif";

		top20 = new Image();
		top20.src = "images/Top20_1a.gif";
		top20on = new Image();
		top20on.src = "images/Top20_2a.gif";

		letsplay = new Image();
		letsplay.src = "images/PlayNow_1A.gif";
		letsplayon = new Image();
		letsplayon.src = "images/PlayNow_2A.gif";
		 
		hotlist = new Image();
		hotlist.src = "images/MyHotlist_1a.gif";
		hotliston = new Image();
		hotliston.src = "images/MyHotlist_2a.gif";

		mykisses = new Image();
		mykisses.src = "images/Kisses_1A.gif";
		mykisseson = new Image();
		mykisseson.src = "images/Kisses_2A.gif";
		
		whosviewing= new Image();
		whosviewing.src = "images/viewing_1a.gif";
		whosviewingon = new Image();
		whosviewingon.src = "images/viewing_2a.gif";
		
		whoson= new Image();
		whoson.src = "images/online_1a.gif";
		whosonon = new Image();
		whosonon.src = "images/online_2a.gif";

		imagehome= new Image();
		imagehome.src = "images/Home_1a.gif";
		imagehomeon = new Image();
		imagehomeon.src = "images/home_2a.gif";
		
		imagemail= new Image();
		imagemail.src = "images/Mail_1a.gif";
		imagemailon = new Image();
		imagemailon.src = "images/Mail_2a.gif";
		
		imagesearch= new Image();
		imagesearch.src = "images/search_1a.gif";
		imagesearchon = new Image();
		imagesearchon.src = "images/search_2a.gif";

		imageacct= new Image();
		imageacct.src = "images/Account_1a.gif";
		imageaccton = new Image();
		imageaccton.src = "images/Account_2a.gif";
		
		imagetravel= new Image();
		imagetravel.src = "images/Travel_1a.gif";
		imagetravelon = new Image();
		imagetravelon.src = "images/Travel_2a.gif";
		
		imageforum= new Image();
		imageforum.src = "images/forums_1a.gif";
		imageforumon = new Image();
		imageforumon.src = "images/forums_2a.gif";
		
		imagefriends= new Image();
		imagefriends.src = "images/MyFriends_1a.gif";
		imagefriendson = new Image();
		imagefriendson.src = "images/MyFriends_2a.gif";
		
		imageparties= new Image();
		imageparties.src = "images/Parties_1a.gif";
		imagepartieson = new Image();
		imagepartieson.src = "images/Parties_2a.gif";
		
		imagechat= new Image();
		imagechat.src = "images/Chat_1a.gif";
		imagechaton = new Image();
		imagechaton.src = "images/Chat_2a.gif";

		imageshop = new Image();
		imageshop.src = "images/shop_1a.gif";
		imageshopon = new Image();
		imageshopon.src = "images/shop_2a.gif";

		imageprofile = new Image();
		imageprofile.src = "images/profile_1b.gif";
		imageprofileon = new Image();
		imageprofileon.src = "images/profile_2b.gif";

		function imageon(name)  
			
		{	//assuming only the gifs will be animated so don't do hover over
			if (document[name].src.indexOf("_ANI") == -1)
				document[name].src = eval(name + "on.src");
		   
		}
		function imageoff(name) 
		{	//assuming only the gifs will be animated so don't do hover over
			if (document[name].src.indexOf("_ANI") == -1)
				document[name].src = eval(name + ".src");
		}

		function on(name) 
		{
	        imageon(name);
		}
		function off(name) 
		{
	        imageoff(name);
		}		 
		
		
		
function emailon() {
	if (parent.topFrame.document.getElementById('hypEmail2') != null)
	{   ;
		var theIcon2 = parent.topFrame.document.getElementById('hypEmail2');
		theIcon2.src = "images/email5.gif"
		parent.clientFrame.focus();
	}
}
			
function emailoff() {
	if (parent.topFrame.document.getElementById('hypEmail2') != null)
	{   
        var theIcon2 = parent.topFrame.document.getElementById('hypEmail2');
		theIcon2.src = "images/noEmail.gif"
		parent.clientFrame.focus();
	}					
}		

function personalize()
{
    parent.frames['clientFrame'].openSwingTo();
}
		
function swingTo(ddlb)
{
	var theValue
	theValue = ddlb.value;
	
	if (theValue != 0)
		//parent.clientFrame.location = "ViewProfile.aspx?U=" + theValue+ "&redir=Y";
		parent.clientFrame.location = "Redirect.aspx?U=" + theValue+ "&F=V";
	ddlb.value = 0;
}

		
/******************   Toolbar  functions ****************************/
			function pageRedirect(page,expired,pageFrom)
			{
				var theDate = new Date()	
				if (expired)
				{
				   if (page.indexOf('Kissing') > 0 )
  						if (theDate.getDay() == 3)
							parent.clientFrame.document.location.href = page
						else
						{
							alert("Free Members my view kisses only on 'Kisses/Humpday Wednesday'")
							parent.clientFrame.document.location.href = "MemberBilling.aspx?F=" + pageFrom						
						}
					else
						{
							alert("Paid member only feature. Become a paid member, to access these features")
							parent.clientFrame.document.location.href = "MemberBilling.aspx?F=" + pageFrom
						}
				}
				else
					parent.clientFrame.document.location.href = page
			}

			function mail()
			{
			parent.clientFrame.document.location.href = "mail.aspx?F=1&FN=New"
			}
			
			function manageProfile()
			{
			parent.clientFrame.document.location.href = "manageProf.aspx" 
		    }  			
			
			function whosOn()
		    {
			parent.clientFrame.document.location.href = "WhosOn.aspx?O=1" 
			}

		    function searchUser()
			{
			   parent.clientFrame.document.location.href = "WhosOn.aspx?A=1" 
			}    

		    function userMail()
		    {
		    parent.clientFrame.document.location.href = "mail.aspx?F=1&FN=New" 
			}   
			
    
		    function goHome()
			{ 
			    if (screen.width < 1024) 
					{parent.clientFrame.document.location.href = "HomePage-lowres.aspx" }
				else
					{parent.clientFrame.document.location.href = "HomePage.aspx" }
			}       
    
        

		    function UnderConstruction()
			{
			parent.clientFrame.document.location.href = "UnderConstruction.aspx" 
			}            			


			
			function clubs()
			{
			  parent.clientFrame.document.location.href = "links.aspx" 
			}     			
			
						
			
			function forums()
			{
			  parent.clientFrame.document.location.href = "Forums.aspx" 
			}    
			
			function help()
			{
			  open_win("help.htm");
			}    			
			
			function GetCertified()
			{
			  open_win("GetCertified.aspx");
			}    						
			
			function TermsAndCond()
			{
              window.open("TermsAndConditions2.aspx" ,null,'height=550,width=850,status= no, resizable= yes, scrollbars=yes, toolbar=no,location=no,menubar=no ');
			
			} 					


