﻿<!--
function IncludeJS(srcUrl){
	document.write('<script type="text/javascript" src="' + srcUrl + '" charset="utf-8"></' + 'script>');
}

function IncludeCSS(srcUrl){
	document.write('<link rel="stylesheet" href="' + srcUrl + '" type="text/css" media="screen" />');
}

IncludeJS('http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js');
IncludeJS('/js/sitelink.js');

function InsertFLASH(src,width,height){
var html = ""
html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'">'
html += '<param name="movie" value="'+src+'">'
html += '<param name="quality" value="high">'
html += '<param name="menu" value="false" />'
html += '<param name="wmode" value="transparent" />'
html += '<embed wmode="transparent" src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object>'


document.write(html);
}

function InsertMEDIA(src,width,height){
var html = ""
html += '<embed src="'+src+'"  width="'+width+'" height="'+height+'" autostart="true"></embed>'

document.write(html);
}

function autoBlur(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="/img") 
document.body.focus(); 
} 
document.onfocusin=autoBlur;

function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 

function OpenPop(fn) {
	window.open("/include/popimage.asp?filename=" + fn, "pop", "left=0,top=0,width=100,height=100,scrollbars=no");
}

function Resize_Image(img) {
	var Max = 630

	tempImg = new Image();
	tempImg.src = img.src;

	if (tempImg.width >= Max) img.width = Max;
	else img.width = tempImg.width
}

var iframeData = new Object;

function resize_iFrame(frameId) {
	clearTimeout(iframeData[frameId]);

	var iFrame = $(frameId);
	var innerDoc = (iFrame.get(0).contentDocument) ? iFrame.get(0).contentDocument : iFrame.get(0).contentWindow.document;
	iFrame.height(innerDoc.body.scrollHeight);

	iframeData[frameId] = setTimeout(function () { resize_iFrame(frameId) }, 50);
}

