/**
 * @author asperber
 */

 	window.onload=function()
	{	
		//alert (top.parent.frames[0].location.href);
		if ( ! top.parent.frames[0] )
		{
			var actUrl = window.location.href;
			var aActUrl = actUrl.split('/');
			var page = aActUrl[ (aActUrl.length-1) ];
			window.location.href="index.html?page="+page;
		}
		else
		{
			;
			//top.parent.fctSwitchHeaderLogo('none');
		}
	}
	
 $(document).ready(function(){
     //Horizontal Sliding  
     $('.boxgrid.slideright').hover(function(){  
         $(".cover", this).stop().animate({left:width+'px'},{queue:false,duration:300});  
     }, function() {  
         $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});  
     }); 
	 
	  //Horizontal Sliding  right
     $('.boxgrid.slideright2').hover(function(){  
         $(".cover", this).stop().animate({left:(width*-1)+'px'},{queue:false,duration:300});  
     }, function() {  
         $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});  
     }); 

	//Diagnal Sliding left
	$('.boxgrid.thecombo').hover(function(){
		$(".cover", this).stop().animate({top:height+'px', left:width+'px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	 
	 //Diagnal Sliding right
	$('.boxgrid.thecombo2').hover(function(){
		$(".cover", this).stop().animate({left:(width*-1)+'px', top:height+'px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({left:'0px', top:'0px'},{queue:false,duration:300});
	});
	
		 //Diagnal Sliding linksunten
	$('.boxgrid.thecombo3').hover(function(){
		$(".cover", this).stop().animate({left:(width*-1)+'px', top:(height*-1)+'px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({left:'0px', top:'0px'},{queue:false,duration:300});
	});
	
		 //Diagnal Sliding linksunten
	$('.boxgrid.thecombo4').hover(function(){
		$(".cover", this).stop().animate({left:width+'px', top:(height*-1)+'px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({left:'0px', top:'0px'},{queue:false,duration:300});
	});
});	 
