﻿//获取classid,classname参数     
 var iframe = document.getElementById("Iframe1");
jQuery().ready(function(){
		// second simple accordion with special markup
		jQuery('#navigation').accordion({
			active: jsactive,
			header: '.head',
			navigation: false,
			event: 'click',
			fillSpace: false,
			alwaysOpen: false,
			animated: 'easeslide',
			autoheight: false
		});
	});
	//参数用法：
	//alwaysOpen为false时，点击时展开，再点击时收缩;为true时相反，此为默认值。
	//event：为click时表示用点击展开方式（默认值），为mouseover表鼠标移上去时展开
	//fillSpace：为true时表示展开面板以最高的为准（默认值），为false表示展开面板以固定值为准
	//animated：为空时表示不用动画方式展开（默认值），为easeslide表示平滑滑动方式展开，为bounceslide表示抖动方式展开，
//获取URL中指定参数的值，参数name为URL参数名，返回改参数名的参数值
 function GetQueryStringRegExp(name) 
        { 
            var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i"); 
            if (reg.test(location.href)) 
            return unescape(RegExp.$2.replace(/\+/g, " ")); return ""; 
        }
//iframe自适应高度
 function reinitIframe(){
		try{
			var bHeight = iframe.contentWindow.document.body.scrollHeight;
			var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
			var height = Math.max(bHeight, dHeight);
			iframe.height =  height;
		}catch (ex){}
	}
window.setInterval("reinitIframe()", 200);