$(document).ready(function(){

$('.drop_menu').hide();


/*$('.agent_login_off').click(function() {
	$('.agent_login_on').fadeIn(500);
	$('.agent_login_off').fadeOut(500);
	return false;
  });
	
$('.agent_close').click(function() {
	$('.agent_login_off').fadeIn(500);
	$('.agent_login_on').fadeOut(500);
	return false;
  });*/
  

$('#menu_item_1').mouseover(function() {
	$('.drop_menu').fadeIn(500);
	return false;
  });


$('#menu_item_5, #menu_item_4, #menu_item_3, #menu_item_2, #menu_item_6, #menu_item_14, #menu_item_14, .ati_logo, .product_copy, .product_thumb_container').mouseover(function() {
	$('.drop_menu').fadeOut(500);
	return false;
  });
  
$('.drop_close').click(function() {
	$('.drop_menu').fadeOut(500);
	return false;
  });

});
  	



function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function showWatch(url){
	MM_showHideLayers('movie_holder','','show');
	MM_showHideLayers('movie_darken','','show');
	
}
	
	
	
function closeWatch(){
	MM_showHideLayers('movie_holder','','hide');
	MM_showHideLayers('movie_darken','','hide');

	

	}
	
	
function popaWindow(url) {
intro = window.open(url,'intro','width=670,height=500,resizable=0,scrollbars=0,toolbar=0,directories=0,status=0,');
var width = 670; 
var height = 500;
var aw = screen.availWidth; 
var ah = screen.availHeight; 
var xPos = (aw - width)/2; 
var yPos = (ah - height)/2; 
intro.moveTo(xPos,yPos);
	}


