﻿// JScript File

window.addEvent('domready', function(){
			//-vertical
			
			var mySlidefilm = new Fx.Slide('filmtest');
			var mySlidedoc = new Fx.Slide('doctest');
         
			
			var name = 'menu'
			var start = document.cookie.indexOf(name + "=");

	        if(start == -1) {
	        mySlidefilm.slideIn();
	        mySlidedoc.slideOut();
	        
	        }
	        start = document.cookie.indexOf("=",start) + 1;
	        var end = document.cookie.indexOf(";",start);

	        if( end == -1 )	end = document.cookie.length;
	 
	        var value = unescape(document.cookie.substring(start,end));
  
            if (value == '1')
            {
                mySlidedoc.slideOut();
		        mySlidefilm.slideIn();
            }
            if (value == '2')
            {
                mySlidefilm.slideOut();
	       	    mySlidedoc.slideIn();
            }
            if (value == '3')
            {
                mySlidefilm.slideIn();
	       	    mySlidedoc.slideOut();
            }
			
			
			
			
			
			$('film').addEvent('click', function(e){
				e = new Event(e);
				document.cookie = 'menu=1; path=/';
				mySlidedoc.slideOut();
				mySlidefilm.slideIn();
				
				e.stop();
			});	
			$('docu').addEvent('click', function(e){
				e = new Event(e);
				document.cookie = 'menu=2; path=/';
				mySlidefilm.slideOut();
				mySlidedoc.slideIn();
				
				e.stop();
			});	
			
		
		
	
		}); 




function details(id)
{
window.location = ('film-details/' + id + '.aspx');
}








function AddToFaves_hp(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	
	}

function IMG2_onclick() {

document.cookie = 'menu=3; path=/';
window.location = ('Default18plus.aspx');
}
 




	








