/****************************************************************************
**
** Copyright (C) 2005-2008 Intuisphere. All rights reserved.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
function BrowserDetect_browser()
{
return BrowserDetect.browser;
}
function BrowserDetect_OS()
{
return BrowserDetect.OS;
}
function BrowserDetect_version()
{
return BrowserDetect.version;
}
function is_get_flash_anim()
{
return getElementByKey("flashanimpage");
}
function IsNumeric(sText)
{
var ValidChars = "0123456789.";
var IsNumber=true;
var Char;
for (i = 0; i < sText.length && IsNumber == true; i++)
{
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{
IsNumber = false;
}
}
return IsNumber;
}
function callFlashFunction(method_name,args)
{
if (BrowserDetect_browser()=="Explorer")
{
var s_arg="";
for (k in args)
{
var v = args[k]
//alert(v)
if (IsNumeric(""+v))
{
s_arg+=""+v+"";
}
else
{
s_arg+=""+v+"";
}
}
s_arg+="";
try
{
return is_get_flash_anim().CallFunction(""+s_arg+"")
}
catch (err)
{
}
return null;
}
var s_arg="";
for (k in args)
{
var v = args[k]
if (k>0)
{
s_arg+=","
}
s_arg+=""+v;
}
try
{
return eval("is_get_flash_anim()."+method_name+"("+s_arg+")");
}
catch (err)
{
}
return null;
}
function is_onscroll()
{
callFlashFunction("scrollFlashPage",[getWindowScrollX(),getWindowScrollY()])
}
function is_set_visibility_html(b)
{
var v_html_layer=getElementByKey('is-global-layer');
for (var i=0;ily_page)
{
v_layer.style.height = "100%";
}
else
{
v_layer.style.height = (ly_page+10)+ "px";
}
var lx_flash = lx_page;
if (lx_flashly_page)
{
flash_anim_height = "100%";
}
else
{
flash_anim_height = (ly_page+10)+ "px";
}
if (is_get_flash_anim())
if (flash_anim_height != (""+is_get_flash_anim().style.height))
{
is_get_flash_anim().style.height = flash_anim_height
}
is_set_visibility_html(document.m_fullpage_resizing_policy!=true);
if (document.webaca_page_is_centered)
{
var bg_offsetX = 0;
var bg_offsetY =document.webaca_banner_height;
if (lx_window>lx_page)bg_offsetX=(lx_window-lx_page)/2;
document.body.style.backgroundPosition=bg_offsetX+"px "+bg_offsetY+"px";
}
callFlashFunction("onEventResize");
}
function IsEnableFullView(b)
{
document.m_fullpage_resizing_policy = b;
is_set_visibility_html(document.m_fullpage_resizing_policy!=true);
// is_onresize();
}
///////
function getScrollXY()
{
var scrOfX = 0, scrOfY = 0;
if( typeof( window.pageYOffset ) == 'number' ) {
//Netscape compliant
scrOfY = window.pageYOffset;
scrOfX = window.pageXOffset;
} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
//DOM compliant
scrOfY = document.body.scrollTop;
scrOfX = document.body.scrollLeft;
} else if( document.documentElement &&
( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
//IE6 standards compliant mode
scrOfY = document.documentElement.scrollTop;
scrOfX = document.documentElement.scrollLeft;
}
return [ eval(""+scrOfX), eval(""+scrOfY) ];
}
function qMin(a,b)
{
return (a>b)?b:a;
}
function qMax(a,b)
{
return (a 2) ? argv[2] : null;
var path=(argc > 3) ? argv[3] : null;
var domain=(argc > 4) ? argv[4] : null;
var secure=(argc > 5) ? argv[5] : false;
document.cookie=name+"="+escape(value)+
((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
((path==null) ? "" : ("; path="+path))+
((domain==null) ? "" : ("; domain="+domain))+
((secure==true) ? "; secure" : "");
}
function getCookieVal(offset) {
var endstr=document.cookie.indexOf (";", offset);
if (endstr==-1)
endstr=document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function IS_GetCookie (name)
{
var arg=name+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while (i0)&&(st.substring(len-2,len)=="px"))
{
return eval(st.substring(0,len-2))
}
return 0;
}
function getPositionX(o)
{
if (o)
{
return extractNum(o.style.left);
}
return 0;
}
function getPositionY(o)
{
if (o)
{
return extractNum(o.style.top);
}
return 0;
}
function getWidth(o)
{
if (o)
{
return extractNum(o.style.width);
}
return 0;
}
function getHeight(o)
{
if (o)
{
return extractNum(o.style.height);
}
return 0;
}
function setSize(o,lx,ly)
{
if (o)
{
o.style.width = ""+lx+"px";
o.style.height = ""+ly+"px";
}
}
function moveElement(o,x,y)
{
if (o)
{
o.style.left = ""+x+"px";
o.style.top = ""+y+"px"
}
}
function getZindex(o)
{
if (o)
{
return o.style.zIndex;
}
return -1;
}
function setZindex(o,index)
{
if (o)
{
o.style.zIndex = index;
}
}
function isDefined(v)
{
var undef;
return v!=undef;
}
function IS_blockRightClick()
{
if (window.Event && document.captureEvents)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function IS_blockIEContextMenu_fct()
{
return false;
}
function norightclick(e)
{
if (window.Event && e && e.which)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
window.oncontextmenu=IS_blockIEContextMenu_fct
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
}
function PreloadImg(s)
{
var img=new Image();
img.src=s;
}
/* SWFObject v1.5
Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="