/************************************************ IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)* Visit DynamicDrive.com for hundreds of original DHTML scripts* This notice must stay intact for legal use***********************************************///Input the IDs of the IFRAMES you wish to dynamically resize to match its content height://Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:var iframeids=[]function addResizedIframe(id) {iframeids.push(id)}//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):var iframehide="yes"//broad stoke fixed height.  see git history for the old brainy codevar FFextraHeight=32;//from Prototypevar isIE = !!(window.attachEvent && !window.opera)function resizeCaller() {var dyniframe=new Array()for (i=0; i<iframeids.length; i++){if (document.getElementById)resizeIframe(iframeids[i])//reveal iframe for lower end browsers? (see var above):if ((document.all || document.getElementById) && iframehide=="no"){var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])tempobj.style.display="block"}}}function resizeIframe(frameid){var currentfr=document.getElementById(frameid)if (currentfr && !window.opera){currentfr.style.display="block"try {	if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax		currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 	else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax		currentfr.height = currentfr.Document.body.scrollHeight;}catch (e) {/*// almost certainly cross-domain issue// 	our ONLY practical option is to use top.location + '#' fragment//	the iframe will set it, we'll parse and clear itvar idx = url.indexOf('#');url = (idx == -1 ? null : url.substring(idx + 1));if (url) {	var pairs = url.split('&'), h = null;	for (var i=0; i<parts.length; ++i) {		kv = parts.split('=');		if (kv[0] == 'iframe.offsetHeight') { 			h = parseInt(kv[1]) + FFextraHeight; 		}		else if (kv[0] == 'iframe.scrollHeight') { 			h = scrollHeight; 		}		if (h) { break; }	}	if (h) {		currentfr.height = h;	}}*/}if (currentfr.addEventListener)currentfr.addEventListener("load", readjustIframe, false)else if (currentfr.attachEvent){currentfr.detachEvent("onload", readjustIframe) // Bug fix linecurrentfr.attachEvent("onload", readjustIframe)}}}function readjustIframe(loadevt) {var crossevt=(window.event)? event : loadevtvar iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElementif (iframeroot)resizeIframe(iframeroot.id);}function loadintoIframe(iframeid, url){if (url!='')	$(iframeid).src=url}if (window.addEventListener)	window.addEventListener("load", resizeCaller, false)else if (window.attachEvent)	window.attachEvent("onload", resizeCaller)else	window.onload=resizeCaller/************************************************ Added by AfterShock*   from mockiphone.js***********************************************/function go(url){	loadintoIframe('app_window', url);	return false;}// correctly handle PNG transparency in Win IE 5.5 & 6.function correctPNG() {	//alert("ie6");	var arVersion = navigator.appVersion.split("MSIE")	var version = parseFloat(arVersion[1]);	if ((version >= 5.5 && version < 7) && (document.body.filters)) 	{		for(var i=0; i<document.images.length; i++)		{			var img = document.images[i]			var imgName = img.src.toUpperCase()			if (imgName.substring(imgName.length-3, imgName.length) == "PNG")			{				var imgID = (img.id) ? "id='" + img.id + "' " : ""				var imgClass = (img.className) ? "class='" + img.className + "' " : ""				var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "				var imgStyle = "display:inline-block;" + img.style.cssText 				if (img.align == "left") imgStyle = "float:left;" + imgStyle				if (img.align == "right") imgStyle = "float:right;" + imgStyle				if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle				var strNewHTML = "<span " + imgID + imgClass + imgTitle				+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"				+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"				+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 				img.outerHTML = strNewHTML				i = i-1			}		}	}    }function $(element) {	return document.getElementById(element);}
