<!--
    // This is only needed for Netscape browsers.
    function flashGetHref() { return location.href; }
    function flashPutHref(href) { location.href = href; }
    function flashGetTitle() { return document.title; }
    function flashPutTitle(title) { document.title = title; }
    
   function trailer() {
	window.open("trailer.html?id=trailer&settings=true", "trailer", "screenX=100,screenY=100,top=100,left=100,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=530,height=465");
	}
   
   function popupDesktopInstructions()
    {
    	openPopupScrollable( 'flash/download_instructions.html', 'desktopinstructions', 420, 340, false );
    }
    function popupEmail()
    {
    	openPopup( 'flash/email.html', 'Email', 380 , 365, true );
    }
    
    function popupEcard()
    {
    	openPopup( 'flash/ecard.html', 'Ecard', 400,365,true);
    }
    
    function popupEcardSendToFriend()
    {
    	openPopup( 'flash/ecard_send.html', 'Ecard_Send', 400, 365, true);
    }
    
    function popupTrailerSmall()
    {
    	openPopup( 'trailer/trailer_small.html', 'Trailer_Small', 450, 300, true );
    }
    function popupTrailerMedium()
    {
    	openPopup( 'trailer/trailer_medium.html', 'Trailer_Medium', 500, 350, true );
    }
    function popupTrailerLarge()
    {
    	openPopup( 'trailer/trailer_large.html', 'Trailer_Large', 634, 425, true );
    }
    
    function popupSendScreenSaver(id)
    {
    	openPopup('flash/screensaver_send.html', 'SendToFriendScreenSaver', 444,378, true );
    }
    
    function popupScreenSaverPreview( id )
    {
    	openPopup('flash/screensaver_preview.html', 'ScreenSaverPreview', 238, 179, true );
    }
    
    function popupFilmClip()
    {
    	openPopup('flash/filmclip_send.html', 'SendToFriendFilmClip', 444,378, true);
    }
    
    function popupWireless()
    {
    	openPopup( 'http://dev.mymobilecity.com/cgi-bin/sms/sms_signup_nbx.pl?subtorf=true&userid=8&listid=26', 'Wireless', 500, 500, true );
    }
    function popupTrailer()
    {
    	openPopup( 'trailer/freddyvsjason.html', 'Trailer', 636, 530, true );
    }
    function playVideo( sVideo, lSize )
    {
    	var sSize;
    	var lWidth;
    	var lHeight; 
    	
    	switch( lSize )
    	{
    		case 240:
    			sSize 	= 'small';
    			lWidth 	= 450;
    			lHeight = 300;
    			break;
    			
    		case 320:
    			sSize 	= 'medium';
    			lWidth 	= 500;
    			lHeight = 350;
    			break;

    		case 480:
    			sSize 	= 'large';
    			lWidth 	= 634;
    			lHeight = 500;
    			break;
    	}
    	var sURL = 'trailer/' + sVideo.toLowerCase() + '_' + sSize + '.html';
    	
    	openPopup( sURL, sVideo + lWidth + lHeight, lWidth, lHeight, true );
    }
    function popupInternational()
    {
    	openPopup( 'international.html', 'ReleaseDates', 450, 470, true );
    }
    function popupDeskTop()
    {
    	openPopupScrollable( 'flash/desktop_frame.html', 'Desktop', 520 ,445, true );
    }
    function popupRoadrunner()
    {
    	openPopupScrollable( 'http://www.roadrunnerrecords.com/freddyvsjason', 'Roadrunner', 520, 560, true );
    }
    function popupSweeps()
    {
    	openPopupScrollable( 'fight', 'Roadrunner', 950, 500, true );
    }
    function popupCommerce()
    {
    	openPopupScrollable( 'http://shop.newline.com/catalog/category.xml?category_name=nme&referral_id=FVJ', 'Commerce', 520, 560, true );
    }
    function popupDeskTopCustom()
    {
    	openPopup( 'cgi-bin/upload.cgi', 'Desktop', 444 ,450, true );
    }
    function popupPoll()
    {
    	openPopup( 'flash/poll.html', 'Poll', 380, 350, true );
    }
    function popupQuiz()
    {
    	openPopup( 'cgi-bin/trailer.cgi', 'Quiz', 250, 600, true );
    }
    
    function popupFanArtDesktop(id, size)
    {
    	var lWidth  = 800;
	var lHeight = 600;
	
	switch( size )
	{
		case "800":
			lWidth	= 800;
			lHeight = 600;
			break;
		case "1024":
			lWidth	= 1024;
			lHeight = 768;
			break;
		case "1280":
			lWidth	= 1280;
			lHeight = 1024;
			break;
	}
    	openPopup( 'cgi-bin/fanart/downloadDesktop.cgi?id=' + id + '&size=' + size, 'Desktop'+id, lWidth ,lHeight, true);
    }
    
    function popupSendFanArt(id)
    {
    	openPopup('cgi-bin/fanart.cgi?id='+id, 'FanArtSendToFriend'+id, 444,378, true );
    }
    
    function popupSendQuiz()
    {
    	openPopup( 'flash/quiz_send.html', 'QuizSendToFriend', 444, 378, true );
    }
    function popupPhoto()
    {
    	openPopup( 'flash/photo.html?1', 'Photo', 380, 425, true);
    }
    function popupPoster(id)
    {
    	if ( parseInt(id) > 0 )
    	{
    		id = parseInt(id);	
    	}
    	else
    	{
    		id = 1;
    	}
    	openPopup( 'flash/poster.html?'+id , 'Poster', 380, 620, true );
    }
    function popupSendPhoto(id)
    {
    	if ( parseInt(id) > 0 )
    	{
    		id = parseInt(id);	
    	}
    	else
    	{
    		id = 13;
    	}
    	var myPopupPhoto;
    	
    	//myPopupPhoto = openPopup( 'flash/photo_send.html?'+id, 'PhotoSend', 380, 620, true);
    	myPopupPhoto = openPopup( 'flash/photo_send.html?'+id, 'PhotoSend', 444, 378, true);
    	myPopupPhoto.focus();
    	
    }
    
    function popupSendSlashCard(id)
    {
    	var myPopupSlashCard;
    	
    	myPopupSlashCard = openPopup( 'flash/slashcard_send.html?'+id, 'SlashCardSend', 444, 378, true);
    	myPopupSlashCard.focus();
    	
    }
    
    function popupSendPoster(id)
    {
    	if ( parseInt(id) > 0 )
    	{
    		id = parseInt(id);	
    	}
    	else
    	{
    		id = 1;
    	}
    	openPopup( 'flash/poster_send.html?' +id, 'PosterSendFriend', 380, 620, true );
    }
    
    function popupPosterInstruction()
    {
    	openPopup( 'flash/poster_instructions.html', 'PosterInstruction', 380,365, true );
    }
    
    function openDesktop( src, size )
    {
	var lWidth  = 800;
	var lHeight = 600;
	
	switch( size )
	{
		case "800x600":
			lWidth	= 800;
			lHeight = 600;
			break;
		case "1024x768":
			lWidth	= 1024;
			lHeight = 768;
			break;
		case "1280x1024":
			lWidth	= 1280;
			lHeight = 1024;
			break;
	}
	
	var oWindow = openPopup( '', 'Desktop'+size, lWidth, lHeight );
	
	oWindow.document.write( '<html>' );
	oWindow.document.write( '	<head>' );
	oWindow.document.write( '		<title>Freddy vs Jason</title>' );
	oWindow.document.write( '	</head>' );
	oWindow.document.write( '	<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">' );
	oWindow.document.write( '		<img src="media/desktops/' + src + '_' + size + '.jpg" width="' + lWidth + '" height="' + lHeight + '" alt="">' );
	oWindow.document.write( '	</body>' );
	oWindow.document.write( '</html>' );
	
    }
    
    
    function openCustomDesktop( sBackground, sCharacter, sCaption, sSize )
    {
	
	var lWidth  = 800;
	var lHeight = 600;
	
	switch( sSize )
	{
		case "800":
			lWidth	= 800;
			lHeight = 600;
			break;
		case "1024":
			lWidth	= 1024;
			lHeight = 768;
			break;
		case "1280":
			lWidth	= 1280;
			lHeight = 1024;
			break;
	}
	
	var oWindow = openPopup( '', 'Desktop'+sBackground+sCharacter+sCaption+sSize, lWidth, lHeight );
	
	oWindow.document.write( '<html>' );
	oWindow.document.write( '	<head>' );
	oWindow.document.write( '		<title>Freddy vs Jason</title>' );
	oWindow.document.write( '	</head>' );
	oWindow.document.write( '	<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">' );
	oWindow.document.write( '		<img src="/media/desktops/custom/custom_' + sBackground + '_' + sCharacter + '_' + sCaption + '_' + sSize + '.jpg" width="' + lWidth + '" height="' + lHeight + '" alt="">' );
	oWindow.document.write( '	</body>' );
	oWindow.document.write( '</html>' );
	
    }
    
    
    
    function openPopup( url, name, width, height, center )
    {
		var oWindow;
		
		if( center )
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height + ',top=' + (( screen.height - height )/2) + ',left=' + (( screen.width - width )/2 ) );
		}
		else
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height );
		}
		
		return oWindow;
    }
    
    function openPopupScrollable( url, name, width, height, center )
    {
		var oWindow;
		
		if( center )
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + width + ',height=' + height + ',top=' + (( screen.height - height )/2) + ',left=' + (( screen.width - width )/2 ) );
		}
		else
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + width + ',height=' + height );
		}
		
		return oWindow;
    }
    
   
    
    	
    function getCopyright( paragraphmarks, linebreaks )
	{
		var sResult = '';
		
		if( paragraphmarks )
			sResult += '<p align="center" class="copyright">';
		else
			sResult += '<font align="center" class="copyright">';
			
		sResult += '	<a class="copyrightlink" href="http://www.newline.com/termsofuse/index.html" target="_blank">Terms of Use</a> ';
		sResult += '	| ';
		sResult += '	<a class="copyrightlink" href="http://www.newline.com/privacy/privacy1.html" target="_blank">Privacy Policy</a><br>';
		sResult += '	TM & ?MMIII New Line Productions, Inc.  All Rights Reserved.';
				
		if( paragraphmarks )
			sResult += '</p>';
		else
			sResult += '</font>';
			
		
		return sResult;
	}	
	
	function setCoppaCookie()
	{
		setCookie( 'coppa_cookie', 'underage' );
	}
	
	function setCookie( name, value, expires, path, domain, secure )
	{
	    document.cookie = 	name + "=" +escape(value) +
	        				( (expires) ? ";expires=" + expires.toGMTString() : "") +
	        				( (path) 	? ";path=" + path : "") +
	        				( (domain) 	? ";domain=" + domain : "") +
	        				( (secure) 	? ";secure" : "");
	}

	function getCookie( sName )
	{
	    var start 	= document.cookie.indexOf( sName + "=" );
	    var len 	= start + sName.length+1;

	    if( ( !start ) && ( sName != document.cookie.substring( 0, sName.length ) ) )
	    	return null;

	    if( start == -1 )
	    	return null;

	    var end 	= document.cookie.indexOf(";",len);

	    if( end == -1 )
	    	end = document.cookie.length;

	    return document.cookie.substring( len, end );
	}
	
//-->

