
/**************************************************************************************************/

var fromLeft = window.screenLeft + 40;
var fromTop = window.screenTop;

function RefreshPersonalization()
{
	//self.location.reload();
	self.location.href = self.location.href;
}

/********************************* Registration/login links ********************************/

function Registration(theLink, targetWindow)
{
	if(theLink == null || theLink == '')
		theLink = "";
	if(targetWindow == null || targetWindow == '')
		targetWindow = "opener";
	registrationWinHandler = parent.window.open('/premium/login/registration.pl?targetWindow=' + targetWindow + '&target='+theLink,'registrationWin','scrollbars=yes,resizable=yes,status=yes,left=10,top=10,width=423,height=652');
}

function Login(theLink, targetWindow)
{
	if(theLink == null || theLink == '')
		theLink = "";
	if(targetWindow == null || targetWindow == '')
		targetWindow = "opener";
	loginWinHandler = parent.window.open('/premium/login/login.pl?targetWindow=' + targetWindow + '&target=' + theLink,'loginWin','scrollbars=no,resizable=yes,left=10,top=10,width=403,height=478');
}


function LogOut()
{
	logoutWinHandler = parent.window.open('/premium/login/logOut.pl','logoutWin','scrollbars=no,resizable=yes,left=10,top=10,width=403,height=251');
}

function PasswordReminder()
{
    window.open('/premium/login/passwordReminder.pl','passwordReminderWin','scrollbars=yes,toolbar=yes,resizable,left=10,top=10,width=640,height=480');
}

function GirlSense()
{
	top.location.reload();
}

function Send2Friend(activity)
{
	if(activity==null)
		activity = 'generic';
    window.open('http://www.girlsense.com/premium/tools/send2friend/index.pl?activity=' + activity,'send2friendWin','scrollbars=auto,toolbar=no,menubar=no,resizable,left=10,top=10,width=403,height=498');
}

function GetOurNewsletter()
{
	window.open('http://www.girlsense.com/premium/login/newsletter/index.htm','newsletterWin','scrollbars=no,resizable,left=10,top=10,width=403,height=478');
}

/********************************* Creations/communications links ********************************/

function ViewGSIDCard(uidCreator)
{
	if(uidCreator == null)
		uidCreator = '';
	var thelink = "http://www.girlsense.com/premium/GSIDCards/viewer.pl?uidCreator=" + uidCreator;
	ViewGSIDCardWinHandler = parent.window.open(thelink, 'ViewGSIDCardWin', 'scrollbars=no,toolbar=no,resizable=yes,status=no,left=10,top=10,width=525,height=453');		
}

function ViewBoutiqueByNickname(nickname)
{
	if(nickname == null)
		nickname = '';
	var thelink = "http://www.girlsense.com/premium/eBoutiques/viewer.pl?nickname=" + nickname;
	/*
	if (parent)
	{
		parent.location.href = thelink;
	}
	else
	{
		self.location.href = thelink;	
	}
	*/
	ViewMyBoutiqueWinHandler = parent.window.open(thelink, 'ViewMyBoutiqueWin', 'scrollbars=yes,toolbar=no,resizable=yes,status=no,left=10,top=10,width=1000,height=650');	
}

function ViewWebsiteByNickname(nickname)
{
	if(nickname == null)
		nickname = '';
	var thelink = "http://www.girlsense.com/premium/homepages/" + nickname + ".htm";
	ViewWebsiteWinHandler = parent.window.open(thelink, 'ViewWebsiteWin', 'scrollbars=no,toolbar=no,resizable=yes,status=no,left=10,top=10,width=795,height=550');	
}

function ViewMyWebsite()
{
	var thelink = "http://www.girlsense.com/premium/websiteComposer/websiteViewer.pl";
	ViewWebsiteWinHandler = parent.window.open(thelink, 'ViewWebsiteWin', 'scrollbars=no,toolbar=no,resizable=yes,status=no,left=10,top=10,width=795,height=550');	
}

function ViewGSIDCardByNickname(nickname)
{
	if(nickname == null)
		nickname = '';
	var thelink = "http://www.girlsense.com/premium/GSIDCards/viewer.pl?nickname=" + nickname;
	ViewGSIDCardWinHandler = parent.window.open(thelink, 'ViewGSIDCardWin', 'scrollbars=no,toolbar=no,resizable=yes,status=no,left=10,top=10,width=525,height=453');	
}

function SendQuickNote(recipientNickname, recipientUid)
{
	/*
	if(recipientNickname == null)
		recipientNickname = '';
	if(recipientUid == null)
		recipientUid = '';
	var thelink = "http://www.girlsense.com/premium/quickNotes/index.pl?action=new&recipientUid=" + recipientUid + "&recipientNickname=" + recipientNickname;
	SendQuickNoteWinHandler = parent.window.open(thelink, 'SendQuickNoteWin', 'scrollbars=no,toolbar=no,resizable=yes,status=no,left=10,top=10,width=375,height=335');	
	*/
}

function MyAccount()
{
	theLink = '/premium/eBoutiques/myAccount.pl';	
	MyAccountWinHandler = parent.window.open(theLink,'MyAccountWin','scrollbars=no,toolbar=no,resizable=yes,status=yes,left=10,top=10,width=428,height=457');	
}

function GSstore()
{
	//theLink = '/premium/GSstore/index.pl';	
	theLink = '/premium/GSstore/container.pl';	
	//GSstoreWinHandler = parent.window.open(theLink,'GSstoreWin','scrollbars=no,toolbar=no,resizable=yes,status=yes,left=10,top=10,width=776,height=457');	
	GSstoreWinHandler = parent.window.open(theLink,'GSstoreWin','width=960,height=750');	
}

function HowToEarn()
{
	theLink = '/premium/eBoutiques/howToEarnGcents.htm';
	howToEarnWinHandler = parent.window.open(theLink,'howToEarnWin','scrollbars=no,toolbar=no,resizable=yes,status=yes,left=10,top=10,width=720,height=553');	
}


/********************************* Activities links ********************************/

function openLink(theLink, theWidth, theHeight)
{	
	theWidth = (theWidth != null ? theWidth : 800);
	theHeight = (theHeight != null ? theHeight : 600);
	var fromLeft = window.screenLeft + 40;
	var fromTop = window.screenTop;
		
	activityWinHandler = parent.window.open(theLink,'activityWin','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width='+theWidth+',height='+theHeight);
}

function openLinkHere(theLink)
{	
	top.location.href = theLink;
}

function GoTo(theLink)
{
	if(theLink == null)
		return;
					
	if ((theLink.toLowerCase().indexOf('premium') != -1) || (theLink.toLowerCase().indexOf('kiddonet') != -1) || (theLink.toLowerCase().indexOf('.htm') != -1) || (theLink.toLowerCase().indexOf('.pl') != -1))
	{
		activityWinHandler = parent.window.open(theLink,'activityWin','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=795,height=486');
	}
}

function openMail()
{
	Mail();	
}
function openNotes()
{
	QuickNotes();
}

function NetGames()
{
	theLink = '/premium/center/games/';	
	activityWinHandler = parent.window.open(theLink,'activityWinNetGames','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=800,height=600');
}

function GSFacePlace()
{
	//theLink = '/premium/GSFacePlace/';	
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSFacePlace','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=550,height=550');

	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=faceplace";
	top.location.href = thelink;
}

function GSSlideshows()
{
	theLink = '/premium/template_activities.pl?activity=slideshow_gallery';
	top.location.href = theLink;	
}

function GSFacePlaceCreator()
{
	theLink = '/premium/GSFacePlace/index.pl?action=createFace';	
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSFacePlaceCreator','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=550,height=550');
}
function GSFacePlaceTeaser()
{
	theLink = '/premium/GSFacePlace/index.pl?action=teaser';	
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSFacePlaceTeaser','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=550,height=550');
}

function WWW()
{
	theLink = '/premium/WWW/';	
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinWWW','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=795,height=486');
}

function FDS()
{
	//theLink = '/premium/fashionDesign/index.pl?mode=gs';	
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinFDS','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=800,height=500');

	theLink = "http://www.girlsense.com/premium/eBoutiques/viewer.pl?action=studioTab";
	top.location.href = theLink;
}

function FDSContest()
{
	theLink = '/premium/fashionDesign/contest/vote/winners.htm';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinFDS','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=800,height=500');
}

function BannerMaker()
{
	theLink = '/premium/bannerMaker/index.pl?mode=gs';	
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinBannerMaker','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=800,height=550');
}

function FashionBook()
{
	theLink = '/premium/fashionDesign/standAlonePortfolio.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinFashionBook','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=790,height=490');
}

function MakeOver()
{
	//theLink = '/premium/makeOver/index.pl';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinMakeOver','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=790,height=570');

	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=makeover";
	top.location.href = thelink;
}


function Journal()
{
	theLink = '/premium/journal/index.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinJournal','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=790,height=496');
}

function Stickers()
{
	theLink = '/premium/stamps/index.pl?alreadyVisit=true';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinStickers','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=640,height=340');
}

function KNMusic()
{
	theLink = '/premium/KNMusic/';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinKNMusic','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=790,height=390');
}

function GirlTalk()
{
	theLink = 'http://girlsense.com/premium/girlTalk/';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinGirlTalk','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=810,height=560');
}

function Radio()
{
	return;

	theLink = '/premium/radio/';
	activityRadioWinHandler = parent.window.open(theLink,'premiumActivityRadioWinRadio','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=290,height=306');
}

function DesignerDownloads()
{
	theLink = '/premium/designers/';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinDesignerDownloads','scrollbars=yes,resizable=no,left='+fromLeft+',top='+fromTop+',width=790,height=496');
}

function MakeUp()
{
	//theLink = '/premium/makeup/';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinMakeUp','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=790,height=580');
	
	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=makeup";
	top.location.href = thelink;
}


function Email()
{
	Mail();	
	return;
}

function SuperClea(theTheme)
{
	theTheme = ( theTheme!=null ? theTheme : '' );
	//theLink = '/premium/clea/index.pl?theme='+ theTheme;
	
	//new link for the blog
	theLink = '/premium/template_activities.pl?activity=clea'; 
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinSuperClea','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=810,height=660');
}

function CDollsSummer()
{
	//theLink = '/premium/CDolls/10/center.htm';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinCDolls','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=775,height=420');
	
	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=cdolls_surf";
	window.location.href = thelink;
}

function CDollsSpring()
{
	//theLink = '/premium/CDolls/9/center.htm';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinCDolls','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=775,height=420');
	
	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=cdolls_spring";
	window.location.href = thelink;
}

function CDollsFall()
{
	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=cdolls_fall";
	window.location.href = thelink;
}

function CDollsSurfer()
{
	//theLink = '/premium/CDolls/11/center.htm';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinCDolls','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=775,height=420');

	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=cdolls_surf";
	window.location.href = thelink;
}

function CDollsRockstar()
{
	//theLink = '/premium/CDolls/88/center.htm';
	//activityWinHandler = parent.window.open(theLink, 'premiumActivityWinCDolls', 'fullscreen=yes,scrollbars=auto,resizable=yes,status=yes,toolbar=yes,location=yes,menubar=yes');

	thelink = "http://www.girlsense.com/premium/template_activities.pl?activity=cdolls_rockstar";
	window.location.href = thelink;
}

function CDollsWinter()
{
	theLink = '/premium/CDolls/7/center.htm';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinCDolls','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=775,height=420');
	activityWinHandler = parent.window.open(theLink, 'premiumActivityWinCDolls', 'fullscreen=yes,scrollbars=auto,resizable=yes,status=yes,toolbar=yes,location=yes,menubar=yes');
}

function CDollsHalloween()
{
	theLink = '/premium/CDolls/6/center.htm';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinCDolls','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=775,height=420');
}

function Manicure()
{
	//theLink = '/premium/manicure/index.pl?mode=gs';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinManicure','scrollbars=no,resizable=no,left='+fromLeft+',top='+fromTop+',width=832,height=645');
	
	theLink = "http://www.girlsense.com/premium/template_activities.pl?activity=manicure";
	top.location.href = theLink;
}

function GlitterGreetings()
{
	theLink = "http://www.girlsense.com/premium/template_activities.pl?activity=gg_creator";
	top.location.href = theLink;
}

function GlitterGreetings_Winter()
{
	//theLink = '/premium/GlitterGreetings/0/index.pl?mode=gs';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinGlitterGreeting','scrollbars=no,resizable=no,left='+fromLeft+',top='+fromTop+',width=550,height=450');
	
	theLink = "http://www.girlsense.com/premium/template_activities.pl?activity=gg_winter_creator";
	top.location.href = theLink;
}


function WebsiteDesigner()
{
	theLink = '/premium/websiteComposer/create.pl?mode=gs';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinWebsiteDesigner','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=800,height=550');
}

function WebsiteCenter()
{
	theLink = '/premium/websiteComposer/websitePortal.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinWebsiteDesigner','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=800,height=550');
}



function MakeUpVoting()
{
	theLink = 'http://www.girlsense.com/premium/makeup/contest/vote/index.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinMakeUpVote','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=785,height=470');
}



function Mail()
{
	theLink = '/premium/mail/index.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinMail','scrollbars=yes,resizable=no,left='+fromLeft+',top='+fromTop+',width=730,height=470');
}

function EBoutiques()
{
	theLink = '/premium/eBoutiques/';
	if((window.screen.height > 600) && (window.screen.width > 800))
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinEBoutiques','scrollbars=yes,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=807,height=565');
	}
	else
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinEBoutiques','scrollbars=yes,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=791,height=524');
	}
}

function EBoutiquesCreator()
{
	theLink = '/premium/eBoutiques/viewer.pl';
	parent.location.href = theLink;
	return;
	
	
	theLink = '/premium/eBoutiques/creator.pl?mode=gs';
	if((window.screen.height > 600) && (window.screen.width > 800))
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinEBoutiques','scrollbars=no,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=804,height=560');
	}
	else
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinEBoutiques','scrollbars=yes,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=820,height=524');
	}
}


function IconStudio()
{
	theLink = '/premium/iconStudio/index.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinIconStudio','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=782,height=480');
}

function GSCards()
{
	theLink = '/premium/GSCards/0/index.pl?mode=kn';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSCards','scrollbars=yes,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=800,height=570');
}

function BizCards()
{
	theLink = '/premium/bizcards/index.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinBizCards','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=790,height=490');
}

function Recommendation()
{
	theLink = '/premium/recommendation/center.htm';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinRecommendation','scrollbars=auto,resizable=yes,left='+fromLeft+',top='+fromTop+',width=790,height=494');
}

/*
function GSstore()
{
	theLink = '/premium/GSstore/index.pl';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSstore','scrollbars=no,toolbar=no,resizable=yes,status=yes,left=10,top=10,width=776,height=547');
}
*/

function QuickNotes()
{
	window.location.href = "http://www.girlsense.com/premium/notes/index.pl";
	/*
	if (navigator.userAgent.indexOf("Firefox") != -1)
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinQuickNotes');
	}
	else
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinQuickNotes','scrollbars=no,toolbar=no,resizable=yes,status=no,left=10,top=10,width=427,height=364');
	} 
	*/
	
	/*
	theLink = '/premium/quickNotes/index.pl?action=view';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinQuickNotes','scrollbars=no,toolbar=no,resizable=yes,status=no,left=10,top=10,width=427,height=364');
	*/
}

function Pedicure()
{
	//theLink = '/premium/pedicure/index.pl?mode=gs';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinPedicure','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=832,height=645');

	theLink = "http://www.girlsense.com/premium/template_activities.pl?activity=pedicure";
	top.location.href = theLink;
}

function GSIDCards()
{
	theLink = '/premium/GSIDCards/index.pl?mode=gs';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSIDCards','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=757,height=575');
}

function BadHairDay()
{
	badHairDay();
}

function badHairDay()
{
	//theLink = '/premium/badHairDay/index.pl';
	theLink = '/premium/center/games/game.pl?dispName=Bad%20Hair%20Day';
	//activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSIDCards','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=613,height=530');
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSIDCards');
}

function GSBoard()
{
	theLink = '/premium/GSBoard/';
	if((window.screen.height > 600) && (window.screen.width > 800))
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSBoard','scrollbars=no,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=803,height=664');
	}
	else
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSBoard','scrollbars=yes,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=803,height=664');
	}
}

function PollParty()
{
	/*
	theLink = '/premium/myPolls/';
	if((window.screen.height > 600) && (window.screen.width > 800))
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSBoard','scrollbars=no,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=770,height=642');
	}
	else
	{
		activityWinHandler = parent.window.open(theLink,'premiumActivityWinGSBoard','scrollbars=no,resizable=yes,status=yes,left='+fromLeft+',top='+fromTop+',width=770,height=642');
	}
	*/
	
	//theLink = '/premium/template_activities.pl?activity=my_polls';	
	theLink = '/premium/MyPolls/index.pl';	
	top.location.href = theLink;	
}

function YoutubeClip()
{
	theLink = '/premiun/hp/clip/';
	activityWinHandler = parent.window.open(theLink,'premiumActivityWinClip','scrollbars=no,resizable=yes,left='+fromLeft+',top='+fromTop+',width=690,height=510');
}

/********************************* Centers links ********************************/

function Eboutiques_Center()
{
	if ( (registered == null) || (registered == '') || (registered == 0) )
	{
		var thelink = "http://www.girlsense.com/premium/eBoutiques/index.pl";
	}
	else
	{
		//var thelink = "http://www.girlsense.com/premium/eBoutiques/viewer.pl?action=fashionsTab";
		var thelink = "http://www.girlsense.com/premium/eBoutiques/index.pl";
	}
	window.location.href = thelink;
}

function Fashion_Center()
{
	thelink = "/premium/center/fashion/index.pl"
	window.location.href = thelink;
}

function Salon_Center()
{
	thelink = "/premium/center/salon/index.pl"
	window.location.href = thelink;
}

function Personalized_Center()
{
	thelink = "/premium/center/personalized/index.pl"
	window.location.href = thelink;
}

function Connect_Center()
{
	thelink = "/premium/center/connect/index.pl"
	window.location.href = thelink;
}

function Cards_Center()
{
	thelink = "/premium/center/cards/index.pl"
	window.location.href = thelink;
}

function Games_Center()
{
	thelink = "/premium/center/games/index.pl"
	window.location.href = thelink;
}

function Art_Center()
{
	thelink = "/premium/center/art/index.pl"
	window.location.href = thelink;
}

function Shop_Center()
{
	thelink = "/premium/GSstore/container.pl?tab=stamps"
	window.location.href = thelink;
}

function Widgets_Center()
{
	thelink = "/premium/center/widgets/desktop/index.pl"
	window.location.href = thelink;
}

/********************************* Various Forms links ********************************/

function TermsOfUse()
{
	thelink = '/premium/login/termsOfUse.htm';
	activityWinHandler = window.open(thelink,'premiumActivityWinTerms','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=796,height=575');
}

function PrivacyPolicy()
{
	thelink = '/premium/login/privacy.htm';
	activityWinHandler = window.open(thelink,'premiumActivityPrivacy','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=796,height=575');
}

function FAQ()
{
	thelink = '/premium/login/informationCenter.htm';
	activityWinHandler = window.open(thelink,'premiumActivityFaq','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=757,height=575');
}

function WhoWeAre()
{
	thelink = '/premium/login/notesToParents.htm';
	activityWinHandler = window.open(thelink,'premiumActivityWhoweare','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=757,height=575');
}

function Users_Feedback(theProject)
{
	theProject = ( theProject != null ? theProject : 'SN_HP' )
	// The old feedback form....
	//theLink = '/tools/feedback/index.pl?project=' + theProject;
	//activityWinHandler = window.open(theLink,'premiumActivityWinFeedback','scrollbars=auto,toolbar=no,resizable=yes,left=10,top=10,width=480,height=500');
	theLink = '/tools/feedback/index_CenterTemplate.pl?project=' + theProject;
	activityWinHandler = window.open(theLink,'PremiumCenterFeedback','toolbar=no,menubar=no,scrollbar=no,resizable=yes');
	}

function GS_Polls()
{
	theLink = '/tools/feedback/index.pl?project=GSdistribution3';
	activityWinHandler = window.open(theLink,'premiumActivityWinFeedback','scrollbars=auto,toolbar=no,resizable=yes,left=10,top=10,width=480,height=370');
}

function SiteMap()
{
	thelink = '/premium/siteMap.htm';
	activityWinHandler = window.open(thelink,'premiumActivitySitemap','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=757,height=575');
}

function UpdateUserInfo()
{
	thelink = '/premium/login/update.pl';
	activityWinHandler = window.open(thelink,'premiumActivityUsersInfo','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=757,height=575');
}

function SafetyTips()
{
	thelink = '/premium/login/saftyTips.htm ';
	activityWinHandler = window.open(thelink,'premiumActivitySaftyips','scrollbars=yes,resizable=yes,left='+fromLeft+',top='+fromTop+',width=776,height=575');
}