function $(id) { return document.getElementById(id); }
function sctin(title) {$('sTitle').innerHTML=title;}

////////
	var loadedobjects="";var rootdomain="http://"+window.location.hostname;function ajaxload(url,containerid){var page_request=false;if(window.XMLHttpRequest){page_request=new XMLHttpRequest();}else{if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}else{return false;}}page_request.onreadystatechange=function(){loadpage(page_request,containerid);};url=url+"&rnd="+Math.random();page_request.open("GET",url,true);page_request.send(null);}function loadpage(page_request,containerid){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1)){document.getElementById(containerid).innerHTML=page_request.responseText;}}function loadobjs(){if(!document.getElementById){return ;}for(i=0;i<arguments.length;i++){var file=arguments[i];var fileref="";if(loadedobjects.indexOf(file)==-1){if(file.indexOf(".js")!=-1){fileref=document.createElement("script");fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",file);}else{if(file.indexOf(".css")!=-1){fileref=document.createElement("link");fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href",file);}}}if(fileref!=""){document.getElementsByTagName("head").item(0).appendChild(fileref);loadedobjects+=file+" ";}}}
///////

function flashObject(file_name,width,height,FlashVars){
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '">');
  document.write('<param name="movie" value="' + file_name + '">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="wmode" value="transparent">');
  document.write('<param name="FlashVars" value="'+FlashVars+'">');
  document.write('<embed src="' + file_name + '" width="' + width + '" height="' + height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
  document.write('</object>');
}
/////////////

function setTg(name,cursel,n){
	for(i=1;i<=n;i++){
		var menu=document.getElementById(name+i);
		var con=document.getElementById("con_"+name+"_"+i);
		menu.className=i==cursel?"hover":"";
		con.style.display=i==cursel?"block":"none";
		menu.style.color=i==cursel?"#ffffff":"";
	}
}
/////////////

