
function openWin(URL,Name,Width,Height,scrollbars,resize)
{if(typeof(scrollbars)=="undefined"){scrollbars="Yes";}
if(typeof(Width)=="undefined"||Width==0){Width=screen.availWidth;}
if(typeof(Height)=="undefined"||Height==0){Height=screen.availHeight;}
if(typeof(resize)=="undefined"||resize==""){resize="Yes";}
var left=((screen.availWidth/2)-(Width/2));var top=((screen.availHeight/2)-(Height/2));var settings='location=no,left='+left+',top='+top+',menubar=0,toolbar=no,status=no,scrollbars='+scrollbars+',width='+Width+',height='+Height+',resizable='+resize+'';var win=window.open(URL,Name,settings);win.focus();}
function openJedoxWin(URL,Name,Width,Height,scrollbars)
{if(typeof(scrollbars)=="undefined"){scrollbars="Yes";}
if(typeof(Width)=="undefined"||Width==0){Width=screen.availWidth;}
if(typeof(Height)=="undefined"||Height==0){Height=screen.availHeight;}
var left=((screen.availWidth/2)-(Width/2));var top=((screen.availHeight/2)-(Height/2));var settings='location=no,left='+left+',top='+top+',menubar=0,toolbar=no,status=yes,scrollbars='+scrollbars+',width='+Width+',height='+Height+',resizable=yes';var win=window.open(URL,Name,settings);win.focus();return win;}
flashfix=function(){theObjects=document.getElementsByTagName("object");for(var i=0;i<theObjects.length;i++){theObjects[i].outerHTML=theObjects[i].outerHTML;}}
function FlashDoc(obj,name)
{document.getElementById(name).innerHTML=obj;}
function tabFlashDoc(name,src,width,height,color)
{var strFla;if(color==null){color="#ffffff";}
strFla='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="'+width+'" height="'+height+'"   align="middle"  >';strFla+='<param name="movie" value="'+src+'" />';strFla+='<param name="quality" value="high" />';if(color!="")
{strFla+='<param name="bgcolor" value="'+color+'" />';strFla+='<embed wmode="'+color+'" ';}
else
{strFla+='<param name="swliveconnect" value="true"> ';strFla+='<param name="wmode" value="transparent">';strFla+='<embed wmode=transparent ';}
strFla+=' src="'+src+'" quality="high" width="'+width+'" height="'+height+'"  align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swliveconnect=true   />';strFla+='</object>';document.getElementById(name).innerHTML=strFla;}
window.document.onkeydown=function(e)
{var ev=(e)?e:event;top.keySarav=ev.keyCode;}
var min=70;var max=130;function increaseFontSize()
{increaseFontSizesub("p");increaseFontSizesub("li");increaseFontSizesub("span");}
function decreaseFontSize()
{decreaseFontSizesub("p");decreaseFontSizesub("li");decreaseFontSizesub("span");}
function increaseFontSizesub(pName)
{var p=document.getElementsByTagName(pName);for(i=0;i<p.length;i++)
{if(p[i].style.fontSize)
{var s=parseInt(p[i].style.fontSize.replace("%",""));}
else
{var s=100;}
if(s!=max)
{s+=10;}
p[i].style.fontSize=s+"%"}}
function decreaseFontSizesub(pName)
{var p=document.getElementsByTagName(pName);for(i=0;i<p.length;i++)
{if(p[i].style.fontSize)
{var s=parseInt(p[i].style.fontSize.replace("%",""));}
else
{var s=100;}
if(s!=min)
{s-=10;}
p[i].style.fontSize=s+"%"}}
function fnBrowser(){var browserName=navigator.appName;var ua=navigator.userAgent;if((ua.indexOf("Firefox")==-1)&&(ua.indexOf("MSIE")==-1)){alert("Sorry for the inconvenience. At the moment our website only supports Internet Explorer 6.0+ and Firefox browsers.");}}
