jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}
$.preloadImages("/_images/_bg/banner.jpg", "/_images/_bg/nav-main.png", "/_images/_bg/nav.jpg", "/_images/_bg/menu/top-left.png", "/_images/_bg/menu/top-right-.png", "/_images/_bg/menu2/bl.png", "/_images/_bg/menu2/br.png", "/_images/_bg/menu2/top.jpg");


function Changeclass() {
	var NAME = document.getElementById("search")
	NAME.className="sinput-on"
}

function show_swf_banner(bannerSRC, imageSRC, imgURL, imgAlt, biWidth, biHeight) {
	var flashV = "8";
	var rnd = Math.round(Math.random()*1048576);
	var withLink = true;

	if(!window.bnFlashUrl && !window.bnImgUrl) withLink = false;

	var ie = (navigator.userAgent && (navigator.userAgent.indexOf("MSIE") >= 0) && (navigator.appVersion.indexOf("Win") != -1)) ? 1 : 0;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if(plugin){
		//var pluginVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".") - 1));
		var pluginVersion = parseInt(plugin.description.split('Shockwave Flash ')[1]);
		var isPlay = (pluginVersion >= flashV);
	} else if(ie){
		document.write('<sc'+'ript type="text/vbscript"> \n');
		document.write('on error resume next \n');
		document.write('isPlay = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashV+'")) \n');
		document.write('</sc'+'ript> \n');
	}

	if(window.IEonly && (IEonly == 1) && !ie) isPlay = 0;

	if(isPlay){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+biWidth+'" height="'+biHeight+'">');
			document.write('<param name="movie" value="'+bannerSRC+'" />');
			document.write('<param name="quality" value="high" />');
			document.write('<param name="menu" value="false" />');
			document.write('<param name="wmode" value="" />');
			document.write('<embed src="'+bannerSRC+'" wmode="" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+biWidth+'" height="'+biHeight+'"></embed>');
		document.write('</object>');
	} else {
		document.write('<a href="'+imgURL+'">');
		document.write('<img src="'+imageSRC+'" border="0" alt="'+imgAlt+'">');
		document.write('</a>');
	}
}