var strHost = unescape(window.location.hostname);
var strPath = unescape(window.location.pathname);
var strSearch = unescape(window.location.search);
if (top.location == self.location){
	var strURL = "http://"+ strHost +"/default.asp?"+ strPath + strSearch;
	var splitHref = window.location.href.split("?")
	if (splitHref[0] != ("http://"+ strHost +"/") 
		&& splitHref[0] != ("http://"+ strHost +"/default.asp") 
		&& splitHref[0] != ("http://"+ strHost +"/default.htm") 
		&& splitHref[0] != ("http://"+ strHost +"/default.html") 
		&& splitHref[0] != ("http://"+ strHost +"/index.asp")
		&& splitHref[0] != ("http://"+ strHost +"/index.htm")
		&& splitHref[0] != ("http://"+ strHost +"/index.html")
		&& splitHref[0] != strURL
	){
		/*setTimeout("top.location.replace(strURL)", 500);*/
	}
}
//
if (top.location != self.location){
	var intListnerInterval = setInterval("resetIFrame()", 500);
	function resetIFrame(){
		var myWidth = 0, myHeight = 0;
		if(typeof( window.innerWidth) == 'number') {
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
			//
			myScrollWidth = window.offsetWidth;
			myScrollHeight = window.offsetHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
			//
			myScrollWidth = document.documentElement.scrollWidth;
			myScrollHeight = document.documentElement.scrollHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
			//
			myScrollWidth = document.body.scrollWidth;
			myScrollHeight = document.body.scrollHeight;
		}
		parent.resizeIframe("conwin",myScrollHeight);
	}
}
//
$(document).ready(function(){
		//
		var splitHref = window.location.href.split("/")
		var strBreadCrumb = "";
		for(var i = 0; i < (splitHref.length - 4); i++){
			strBreadCrumb = strBreadCrumb +"../"
		}
		//
		$(document).pngFix(); 
		//
		$(document).find("ul.nav").each(function(){ 
			$("ul.nav").dropmenu({
				hoverClass	: "sfHover",
				currentClass: "overidethistouse",
				delay		: 500,
				animation	: {opacity:"show"},
				speed		: 300
			});
		});
	});
