
var url = window.location.href //获取当前URL
var param  ="";
if(url.indexOf("&&")!=-1)
{
//alert(url);
 param = url.split("&&")[1].split("=")[1];//取得参数
//alert(param+"aaaaaaaaaaaaaaaaaaaaa");
}
//EASY TABS 1.1 - MENU SETTINGS
//Set the id names of your tablinks (without a number at the end)
var tablink_idname = new Array("tablink","anotherlink", "linkthree")
//Set the id names of your tabcontentareas (without a number at the end)
var tabcontent_idname = new Array("tabcontent","anothercontent", "contentthree") 
//Set the number of your tabs in each menu
var tabcount = new Array("4")
//Set the Tabs wich should load at start (In this Example:Menu 1 -> Tab 2 visible on load, Menu 2 -> Tab 5 visible on load , Menu 3 -> Tab 1 visible on load)
var loadtabs ="";
if(param == "")
{
 loadtabs = new Array("1")
}else
{
	loadtabs = new Array(param)
	}


/*Swich EasyTabs Functions - no need to edit something here*/
function easytabs(menunr, active) {

menunr = menunr-1;
for (i=1; i <= tabcount[menunr]; i++)
{

document.getElementById(tablink_idname[menunr]+i).className='overbutton';
document.getElementById(tabcontent_idname[menunr]+i).style.display = 'none';

}
document.getElementById(tablink_idname[menunr]+active).className='outbutton';
document.getElementById(tabcontent_idname[menunr]+active).style.display = 'block';
}
function loadaa()
{
var menucount=loadtabs.length; var a = 0; var b = 1; do {easytabs(b, loadtabs[a]); a++; b++;}while (b<=menucount);
}
window.onload=function(){
var menucount=loadtabs.length; var a = 0; var b = 1; do {easytabs(b, loadtabs[a]); a++; b++;}while (b<=menucount);
	if(document.all && !document.getElementById) {
 		document.all['miFlash'].style.pixelWidth = "995";
 		document.all['miFlash'].style.pixelHeight = "155";
	}else{
		document.getElementById('miFlash').style.width = "995";
		document.getElementById('miFlash').style.height = "155";
	}
}
	
