﻿function getObj(oId){var d=document,el=d.getElementById?d.getElementById(oId):d.all?d.all[oId]:d[oId];if(el){return el;}}
//Create instance of Flash Control
function doFlashObject(oC,id,url,w,h,clsid){var oFlashContainer=getObj(oC);var strParams  = '<param name="allowScriptAccess" value="sameDomain">';strParams += '<param name="movie" value="'+url+'">';strParams += '<param name="menu" value="false">';strParams += '<param name="quality" value="high">';strParams += '<param name="scale" value="exactfit">';strParams += '<param name="autoStart" value="true">';var oStartTag = '<object classid="'+clsid+'" id="'+id+'" width="'+w+'" height="'+h+'" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';var oEmbedTag = '<embed src="'+url+'" menu="false" quality="high" scale="exactfit" width="'+w+'" height="'+h+'" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';var oEndTag = '</object>';if(oFlashContainer){oFlashContainer.innerHTML=oStartTag+strParams+oEmbedTag+oEndTag;}}

// ### Adds Load Listener to the window.onload event handler.
//     Used in conjuction with attachEventListener function.
function addLoadListener(fn){if(typeof window.addEventListener!='undefined'){window.addEventListener('load',fn,false);}else if (typeof document.addEventListener != 'undefined'){document.addEventListener('load',fn,false);}else if(typeof window.attachEvent!='undefined'){window.attachEvent('onload',fn);}else{return false;}return true;}
// ### Attaches an Event Listener to a valid document event type
function attachEventListener(target, eventType, functionRef, capture){if(typeof target.addEventListener!="undefined"){target.addEventListener(eventType,functionRef,capture);}else if(typeof target.attachEvent!="undefined"){target.attachEvent("on"+eventType,functionRef);}else{return false;}return true;}