/*
update version 1.02
Author: ZhiJian Ye
*/
function mainmenu()
{
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function()
{
$(this).find('ul:first')
.css(
{
visibility: "visible",display: "none" // keep it none to maintin effect
}
)
.show(100); // timer of slide (in milliseconds)
},function()
{
$(this).find('ul:first').css({visibility: "hidden"}); // after roolout submenu will be hidden
});
}
/**
init(): Adding onmouse events to the images
*/
function init()
{
var imgArray = document.getElementsByTagName("img")
var img =''
for(var i=0;i');
$('#webkinz_ad_div').html("
")
$('#webkinz_ad_div').css("left",screen_width);
$('#webkinz_ad_div').css("top",(y-10)+"px");
}
//passing variable
var rand = parseInt((Math.random()*10));
var call_url = "http://66.48.83.158/ck.php?bannerid="+banner_id+"&cb="+rand;
//alert("call_url is "+call_url)
if(document.getElementById('webkinz_url_img'))
{
// recall the url
var imgObj = document.getElementById('webkinz_url_img')
imgObj.src=call_url
}
else // create the url
{
$(document.body).append("
\"");
}
//$.get(call_url,{bannerid: "3027",cb:"12"});
//$.getJSON(call_url,{bannerid: "3027",cb:"12"},function(data){} );
}
/*
close_div: close the div for the add
*/
function close_div()
{
$('#webkinz_ad_div').css("display","none");
}
/**
Iniitializing the Menu
*/
$(document).ready(function()
{
init();
mainmenu();
if(isIE6())
{
toggleSelect();
}
} );
/*
check IE
*/
function isIE()
{
var ua = window.navigator.userAgent
var msie = ua.indexOf ( "MSIE" )
if ( msie > 0 ) // If Internet Explorer, return version number
return true;
return false;
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}