
var delay=new Array();var numElements=new Array();var index=new Array();var timeOutID=new Array();var isRunning=new Array();function getElement(elName){if(document.getElementByName){return document.getElementByName(elName);}else if(document.getElementById){return document.getElementById(elName);}else{return false;}}
function ltrim(str)
{var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(0))!=-1){var j=0,i=s.length;while(j<i&&whitespace.indexOf(s.charAt(j))!=-1)
j++;s=s.substring(j,i);}
return s;}
function rtrim(str)
{var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(s.length-1))!=-1){var i=s.length-1;while(i>=0&&whitespace.indexOf(s.charAt(i))!=-1)
i--;s=s.substring(0,i+1);}
return s;}
function trim(str)
{return rtrim(ltrim(str));}
function getBrowser()
{var browser;if(checkUserAgent('konqueror'))
{browser="Konqueror";}
else if(checkUserAgent('safari'))browser="Safari";else if(checkUserAgent('omniweb'))browser="OmniWeb";else if(checkUserAgent('opera'))browser="Opera";else if(checkUserAgent('webtv'))browser="WebTV";else if(checkUserAgent('icab'))browser="iCab";else if(checkUserAgent('msie'))browser="IE"
else if(checkUserAgent('firefox'))browser="Firefox";else if(!checkUserAgent('compatible'))
{browser="Netscape"}
else browser="unknown";return browser;}
function getOS()
{var OS;if(checkUserAgent('konqueror'))
{OS="Linux";}
else if(checkUserAgent('linux'))OS="Linux";else if(checkUserAgent('x11'))OS="Unix";else if(checkUserAgent('mac'))OS="Mac"
else if(checkUserAgent('win'))OS="Windows"
else OS="unknown";return OS;}
function checkUserAgent(string)
{return(navigator.userAgent.toLowerCase().indexOf(string)+1);}
function bVer(){return parseFloat(navigator.appVersion)}
function makeStream(url,name){this.url=url;this.name=name;}
function changeStreamReload(url,episodeName,episodeDescription,reloadQuery)
{var versionCode=bVer();var mac=(navigator.userAgent.indexOf("Mac")!=-1);var activeX=(getBrowser()=='IE'&&versionCode>=4.0)?true:false;if(activeX&&!mac)
{getElement('episodeNameDiv').innerHTML=episodeName;getElement('episodeDescriptionDiv').innerHTML=episodeDescription;mediaPlayer.autoStart=true;mediaPlayer.URL=url;}
else
{window.location.href=reloadQuery;}}
function embedFlash(embedString)
{document.write(embedString);}
function registerEvent(obj,eventName,handler){var eventWithOn;var eventWithoutOn;eventWithOn=(eventName.match(/^on/))?eventName:'on'+eventName;eventWithoutOn=eventName.replace(/^on/,'');if(obj.addEventListener){eventName=eventWithoutOn.toLowerCase();obj.addEventListener(eventName,handler,false);return true;}
else if(obj.attachEvent){eventName=eventWithOn.toLowerCase();obj.attachEvent(eventName,handler);return true;}
else{eventName=eventWithOn.toLowerCase();obj[eventName]=handler;return true;}}
function unregisterEvent(obj,eventName,handler){eventWithOn=(eventName.match(/^on/))?eventName:'on'+eventName;eventWithoutOn=eventName.replace(/^on/,'');if(obj.removeEventListener){eventName=eventWithoutOn.toLowerCase();obj.removeEventListener(eventName,handler,false);return true;}
else if(obj.detachEvent){eventName=eventWithOn.toLowerCase();obj.detachEvent(eventName,handler);return true;}
else{eventName=eventWithOn.toLowerCase();obj[eventName]=null;return true;}}
function getEventTarget(eventObj){var targetObj;eventObj=(eventObj)?eventObj:window.event;if(!eventObj){return false;}
targetObj=(eventObj.target)?eventObj.target:eventObj.srcElement;if(!targetObj){return false;}
targetObj=(targetObj.nodeType==3)?targetObj.parentNode:targetObj;return targetObj;}
function callTran(scriptUrl,scriptQueryString){document.getElementById("tranFrame").src="/tran_frame/"+scriptUrl+"?"+scriptQueryString;}
function getAllFrames(windowObj){var windowFrames;var allWindows;var childFrames;var currentWindow;var frameIndex;var childIndex;allWindows=new Array();if((windowObj.frames)?windowObj.frames.length>0:false){windowFrames=windowObj.frames;for(frameIndex=0;frameIndex<windowFrames.length;frameIndex++){currentWindow=windowFrames[frameIndex];allWindows=allWindows.concat(getAllFrames(currentWindow));}}
allWindows[allWindows.length]=windowObj;return allWindows;}
function getRelatedElements(htmlElement,pattern,useId,searchAllFrames){var docObj;var winIndex;var htmlElts;var elt;var eltIndex;var matchingElts;var eltText;var searchWindows;var thisDocFound;matchingElts=new Array();if(searchAllFrames){searchWindows=getAllFrames(top);}
else{searchWindows=new Array();searchWindows[0]=window;}
for(winIndex=0;winIndex<searchWindows.length;winIndex++){try{docObj=searchWindows[winIndex].document;htmlElts=docObj.getElementsByTagName(htmlElement);}
catch(exc){continue;}
for(eltIndex=0;eltIndex<htmlElts.length;eltIndex++){try{elt=htmlElts[eltIndex];if(useId){eltText=(elt.id)?elt.id.toString():'';}
else{eltText=(elt.className)?elt.className.toString():'';}
if(eltText.match(pattern)){matchingElts[matchingElts.length]=elt;}}
catch(exc){continue;}}}
return matchingElts;}
var newPopupWindow;function popupLinkOption(url,width,height)
{newPopupWindow=window.open(url,'name','height='+height+',width='+width+',left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,location=no');}
var iFrameTimer=null;function stopIframeScroll()
{clearTimeout(iFrameTimer)}
function startIframeScroll(iFrameName,scrollingSpeed,direction)
{var referenceIFrame="frames['"+iFrameName+"']";var isIE=document.all;var pageOffsetDirection,directionScroll,absolutePosition;if(direction=='down'||direction=='up')
{absolutePosition='0,currentPosition';directionScroll='scrollTop';pageOffsetDirection='pageYOffset';}
else
{absolutePosition='currentPosition,0';directionScroll='scrollLeft';pageOffsetDirection='pageXOffset';}
var amountScrolled=(direction=='down'||direction=='right')?(isIE)?scrollingSpeed:scrollingSpeed+.9:(isIE)?-scrollingSpeed:-(scrollingSpeed-.9);var currentPosition=(document.all)?eval("parent."+referenceIFrame+".document.body."+directionScroll)+amountScrolled:eval("parent."+referenceIFrame+"."+pageOffsetDirection)+amountScrolled;var absolutePositionResult=eval("parent."+referenceIFrame+".window.scrollTo("+absolutePosition+")");iFrameTimer=setTimeout("startIframeScroll('"+iFrameName+"',"+scrollingSpeed+",'"+direction+"')",1)}
function callTran(scriptUrl,scriptQueryString){document.getElementById("tranFrame").src="/tran_frame/"+scriptUrl+"?"+scriptQueryString;}
function isIntertechIframe(docObj){var docUrl;var iframeRegex;docUrl=docObj.URL;iframeRegex='([^?])*[/]pages[/]iframe[/]([0-9])+[.]php([?](.)*)*$';return docUrl.match(iframeRegex);}
function getAllFrames(windowObj){var windowFrames;var allWindows;var childFrames;var currentWindow;var frameIndex;var childIndex;allWindows=new Array();if((windowObj.frames)?windowObj.frames.length>0:false){windowFrames=windowObj.frames;for(frameIndex=0;frameIndex<windowFrames.length;frameIndex++){currentWindow=windowFrames[frameIndex];allWindows=allWindows.concat(getAllFrames(currentWindow));}}
allWindows[allWindows.length]=windowObj;return allWindows;}
function getRelatedElements(htmlElement,pattern,useId,searchAllFrames){var docObj;var winIndex;var htmlElts;var elt;var eltIndex;var matchingElts;var eltText;var searchWindows;var thisDocFound;matchingElts=new Array();if(searchAllFrames){searchWindows=getAllFrames(top);}
else{searchWindows=new Array();searchWindows[0]=window;}
for(winIndex=0;winIndex<searchWindows.length;winIndex++){try{docObj=searchWindows[winIndex].document;htmlElts=docObj.getElementsByTagName(htmlElement);}
catch(exc){continue;}
for(eltIndex=0;eltIndex<htmlElts.length;eltIndex++){try{elt=htmlElts[eltIndex];if(useId){eltText=(elt.id)?elt.id.toString():'';}
else{eltText=(elt.className)?elt.className.toString():'';}
if(eltText.match(pattern)){matchingElts[matchingElts.length]=elt;}}
catch(exc){continue;}}}
return matchingElts;}
function registerEvent(obj,eventName,handler){var eventWithOn;var eventWithoutOn;eventWithOn=(eventName.match(/^on/))?eventName:'on'+eventName;eventWithoutOn=eventName.replace(/^on/,'');if(obj.addEventListener){eventName=eventWithoutOn.toLowerCase();obj.addEventListener(eventName,handler,false);return true;}
else if(obj.attachEvent){eventName=eventWithOn.toLowerCase();obj.attachEvent(eventName,handler);return true;}
else{eventName=eventWithOn.toLowerCase();obj[eventName]=handler;return true;}}
function unregisterEvent(obj,eventName,handler){eventWithOn=(eventName.match(/^on/))?eventName:'on'+eventName;eventWithoutOn=eventName.replace(/^on/,'');if(obj.removeEventListener){eventName=eventWithoutOn.toLowerCase();obj.removeEventListener(eventName,handler,false);return true;}
else if(obj.detachEvent){eventName=eventWithOn.toLowerCase();obj.detachEvent(eventName,handler);return true;}
else{eventName=eventWithOn.toLowerCase();obj[eventName]=null;return true;}}
function getEventTarget(eventObj){var targetObj;eventObj=(eventObj)?eventObj:window.event;if(!eventObj){return false;}
targetObj=(eventObj.target)?eventObj.target:eventObj.srcElement;if(!targetObj){return false;}
targetObj=(targetObj.nodeType==3)?targetObj.parentNode:targetObj;return targetObj;}
function loadForumThread(forumThreadId){var thisWindow;var iFrameElts;var iFrame;var iFrameCount;var iFrameIndex;var iFrameClass;var iFrameSrc;var forumFound;var questionMarkPos;var newWinSrc;forumFound=false;iFrameElts=getRelatedElements('iframe','^iFrameContentsForum$',false,true);iFrameCount=iFrameElts.length;for(iFrameIndex=0;iFrameIndex<iFrameCount;iFrameIndex++){try{iFrame=iFrameElts[iFrameIndex];iFrameClass=iFrame.getAttribute('class');if((iFrameClass)?iFrameClass=='iFrameContentsForum':false){forumFound=true;}
else{iFrameClass=iFrame.getAttribute('className');if((iFrameClass)?iFrameClass=='iFrameContentsForum':false){forumFound=true;}}
if(forumFound){iFrameSrc=iFrame.src;questionMarkPos=iFrameSrc.indexOf('?');if(questionMarkPos>=0){iFrameSrc=iFrameSrc.substring(0,questionMarkPos);}
iFrameSrc=iFrameSrc+'?forumThreadId='+forumThreadId;iFrame.src=iFrameSrc;return true;}}
catch(exc){continue;}}
return loadNewWindow(forumThreadId);}
function loadNewWindow(forumThreadId){var newWinSrc;newWinSrc='/topic/forum.php?forumThreadId='+forumThreadId;top.location.href=(newWinSrc);return true;}
keyWordSelection=false;displayPart='';var secreteXmlHttpObj='';preQ="";function showLink(str1,str2,str3,str4,displayId,stnBox)
{if(preQ==str1&&keyWordSelection==false)
{return;}
displayPart=displayId;if(str1.length==0)
{var disObject=document.getElementById(displayPart);if(disObject!='undefined'&&disObject)
disObject.innerHTML="";if(keyWordSelection==true)
{alert("Please Select KeyWord From Drop Down");}
return;}
secreteXmlHttpObj=GetXmlHttpObject();if(secreteXmlHttpObj==null)
{alert("Browser does not support HTTP Request");return;}
preQ=str1;var url="/get_secret_word.php";url=url+"?q="+str1;url=url+"&secretWordId="+str2;url=url+"&liteGraphicId="+str3;url=url+"&stylePrefix="+str4;url=url+"&stnBox="+stnBox;if(keyWordSelection)
{url=url+"&keyWordSelection="+keyWordSelection;}
url=url+"&sid="+Math.random();secreteXmlHttpObj.onreadystatechange=stateChangedSecretWord;secreteXmlHttpObj.open("GET",url,true);secreteXmlHttpObj.send(null);}
function stateChangedSecretWord()
{if(secreteXmlHttpObj.readyState==4||secreteXmlHttpObj.readyState=="complete")
{if(keyWordSelection)
{keyWordSelection=false;if(secreteXmlHttpObj.responseText){var tmp='returnData='+secreteXmlHttpObj.responseText;eval(tmp);newWindowOption=returnData.openInNewWindow;if(newWindowOption)
{window.open(returnData.url);}
else
{location.href=returnData.url;}}}
else
{txtLinkObj=document.getElementById("txtLink");if(txtLinkObj&&txtLinkObj!='undefined'){txtLinkObj.innerHTML=secreteXmlHttpObj.responseText;displayPart='';}}}}
function GetXmlHttpObject()
{var objXMLHttp=null;if(window.XMLHttpRequest)
{objXMLHttp=new XMLHttpRequest();}
else if(window.ActiveXObject)
{objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");}
return objXMLHttp;}
function handleKeystroke(e)
{var keyPressed;if(document.all)
{keyPressed=e.keyCode;}
else
{keyPressed=e.which;}
if(keyPressed==13&&(document.getElementById("secLink")))
{var secretWordId=document.getElementById('secretWordId').value;var goToLinkObj=document.getElementById("gotoLink");var newWindowOption=document.getElementById("newWindow");secretWordClicked(goToLinkObj.value,secretWordId,newWindowOption.value);}}
function setKeyWordParameters(graphicId,stylePrefix,selectBoxId)
{var selectedKeyWordObject=document.getElementById(selectBoxId);var selectedKeyWord=selectedKeyWordObject[selectedKeyWordObject.selectedIndex].text;var selectedKeyWordId=selectedKeyWordObject[selectedKeyWordObject.selectedIndex].value;keyWordSelection=true;showLink(selectedKeyWord,selectedKeyWordId,graphicId,stylePrefix,'','');}
function secretWordClicked(secretWordLink,secretWordId,openNewWindow)
{httpObject=GetXmlHttpObject();if(httpObject!=null){httpObject.open("GET","/update_secretword_clicked.php?"+Math.random()+"&secretWordLink"+secretWordLink+"&secretWordId="+secretWordId,true);httpObject.send(null);httpObject.onreadystatechange=function()
{if(httpObject.readyState==4||httpObject.readyState=="complete")
{if(openNewWindow==1)
window.open(secretWordLink);else
location.href=secretWordLink;}}}}
function keywordPulldown(selectBoxId)
{var selectmenu=document.getElementById(selectBoxId);var selectedsecretWordId=selectmenu.options[selectmenu.selectedIndex].value;keyWordSelection="true";var url="/get_secret_word.php";var dropDown=true;url=url+"?"+Math.random()+"&secretWordId="+selectedsecretWordId;url=url+"&keyWordSelection="+keyWordSelection;url=url+"&keyWordSelection="+keyWordSelection;url=url+"&dropDown="+dropDown;secreteXmlHttpObj=GetXmlHttpObject();if(secreteXmlHttpObj==null)
{alert("Browser does not support HTTP Request");return;}
secreteXmlHttpObj.open("GET",url,true);secreteXmlHttpObj.send(null);}
var contentRatingXmlHttp;function rate_content(rating,contentTypeId,contentId){var url;rating=''+rating;if(rating.match(/([-])?[0-9]+/)){url="/upd_content_rater.php";url+="?q="+rating;url+="&contentTypeId="+contentTypeId;url+="&contentId="+contentId;url+="&sid="+Math.random();contentRatingXmlHttp=getContentRatingXmlHttpObject(function(){contentRatingStateChanged(contentTypeId,contentId);})
contentRatingXmlHttp.open("GET",url,true)
contentRatingXmlHttp.send(null)}}
function contentRatingStateChanged(contentTypeId,contentId){var responseText;var propObj;var pairsArray;var pairIndex;var keyValueArray;var pairKey;var pairValue;var messageElts;var eltIndex;var messageEltId;var hits;var misses;var rating;var debugMsg;var userMsg;var success;if(contentRatingXmlHttp.readyState==4||contentRatingXmlHttp.readyState=="complete"){responseText=contentRatingXmlHttp.responseText;propObj=new Object();pairsArray=responseText.split(',');for(pairIndex=pairsArray.length-1;pairIndex>=0;pairIndex--){keyValueArray=(pairsArray[pairIndex]).split('=');pairKey=''+unescape(keyValueArray[0]);pairValue=''+unescape(keyValueArray[1]);propObj[pairKey]=pairValue;}
hits=propObj['hits'];isHit=propObj['isHit'];misses=propObj['misses'];rating=propObj['rating'];success=propObj['success'];userMsg=propObj['userMsg'];debugMsg=propObj['debugMsg'];if('1'==(''+success)){updateHitOrMissDisplays(contentTypeId,contentId,hits,misses,rating,isHit,userMsg);}else{if(userMsg){displayRatingMessages(contentTypeId,contentId,userMsg);}}}}
function getContentRatingXmlHttpObject(handler)
{var objXmlHttp=null;if(navigator.userAgent.indexOf("Opera")>=0)
{alert("This doesn't work in Opera")
return}
if(navigator.userAgent.indexOf("MSIE")>=0)
{var strName="Msxml2.XMLHTTP"
if(navigator.appVersion.indexOf("MSIE 5.5")>=0)
{strName="Microsoft.XMLHTTP"}
try
{objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler
return objXmlHttp}
catch(e)
{alert("Error: Scripting for ActiveX might be disabled")
return}}
if(navigator.userAgent.indexOf("Mozilla")>=0)
{objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler
return objXmlHttp}}
function updateHitOrMissDisplays(contentTypeId,contentId,hits,misses,rating,isHit,message){var hitElts;var missElts;var ratingElts;var hitGraphicElts;var missGraphicElts;var hitEltRegex='rating\:hitOrMiss\-type\:hit\-contentTypeId\:'+contentTypeId+'\-contentId\:'+contentId+'\-hash\:([A-Za-z0-9])*';var hitGraphicRegex='rating\:hitOrMiss\-type\:hitGraphic\-contentTypeId\:'+contentTypeId+'\-contentId\:'+contentId+'\-hash\:([A-Za-z0-9])*';var missEltRegex='rating\:hitOrMiss\-type\:miss\-contentTypeId\:'+contentTypeId+'\-contentId\:'+contentId+'\-hash\:([A-Za-z0-9])*';var missGraphicRegex='rating\:hitOrMiss\-type\:missGraphic\-contentTypeId\:'+contentTypeId+'\-contentId\:'+contentId+'\-hash\:([A-Za-z0-9])*';var ratingEltRegex='rating\:hitOrMiss\-type\:rating\-contentTypeId\:'+contentTypeId+'\-contentId\:'+contentId+'\-hash\:([A-Za-z0-9])*';var eltIndex;var elt;hitElts=getRelatedElements('div',hitEltRegex,true,true);missElts=getRelatedElements('div',missEltRegex,true,true);ratingElts=getRelatedElements('div',ratingEltRegex,true,true);hitGraphicElts=getRelatedElements('div',hitGraphicRegex,true,true);missGraphicElts=getRelatedElements('div',missGraphicRegex,true,true);for(eltIndex=hitElts.length-1;eltIndex>=0;eltIndex--){elt=hitElts[eltIndex];try{if(elt.firstChild){elt.firstChild.nodeValue=hits;}
else{elt.appendChild(document.createTextNode(hits));}}
catch(exc){;}}
for(eltIndex=missElts.length-1;eltIndex>=0;eltIndex--){elt=missElts[eltIndex];try{if(elt.firstChild){elt.firstChild.nodeValue=misses;}
else{elt.appendChild(document.createTextNode(misses));}}
catch(exc){;}}
for(eltIndex=ratingElts.length-1;eltIndex>=0;eltIndex--){elt=ratingElts[eltIndex];try{if(elt.firstChild){elt.firstChild.nodeValue=rating;}
else{elt.appendChild(document.createTextNode(rating));}}
catch(exc){;}}
for(eltIndex=hitGraphicElts.length-1;eltIndex>=0;eltIndex--){elt=hitGraphicElts[eltIndex];try{elt.style.display=(isHit==1)?'block':'none';}
catch(exc){;}}
for(eltIndex=missGraphicElts.length-1;eltIndex>=0;eltIndex--){elt=missGraphicElts[eltIndex];try{elt.style.display=(isHit!=1)?'block':'none';}
catch(exc){;}}
message=(message)?message:'';displayRatingMessages(contentTypeId,contentId,message);return;}
function displayRatingMessages(contentTypeId,contentId,message){var messageElts;var messageEltId;var messageEltRegex='rating\:hitOrMiss\-type\:message\-contentTypeId\:'+contentTypeId+'\-contentId\:'+contentId+'\-hash\:([A-Za-z0-9])*';var eltIndex;var elt;messageElts=getRelatedElements('div',messageEltRegex,true,true);message=(message)?message:'';for(eltIndex=messageElts.length-1;eltIndex>=0;eltIndex--){elt=messageElts[eltIndex];try{if(elt.firstChild){elt.firstChild.nodeValue=message;}
else{elt.appendChild(document.createTextNode(message));}
messageEltId=elt.id;document.getElementById(messageEltId).style.display='block';window.setTimeout("document.getElementById('"+messageEltId+"').style.display = 'none';",3000);}
catch(exc){;}}
return messageElts;}
var xmlHttp
function rate_content(rating,contentTypeId,contentId,displayVar,stylePrefix,fromBox){displayId=displayVar;style=stylePrefix;if(rating.length==0)
{document.getElementById(displayId).innerHTML="";return;}
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null)
{alert("Browser does not support HTTP Request");return;}
var url="/content_rater.php";url=url+"?q="+rating;url=url+"&contentType="+contentTypeId;url=url+"&contentId="+contentId;url=url+"&fromBox="+fromBox;url=url+"&stylePrefix="+stylePrefix;url=url+"&sid="+Math.random();url=url+"&displayDivId="+displayVar;if(checkIfIsRateaPic(style)){if(document.getElementById('imageGalleryXRefIdsList')){xRefIds=document.getElementById('imageGalleryXRefIdsList').value}
url=url+"&isRateaPic=1";url=url+"&xRefIds="+xRefIds;}
else{url=url+"&isRateaPic=0";}
xmlHttp.onreadystatechange=stateChangedContentRating;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChangedContentRating()
{if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")
{if(checkIfIsRateaPic(style)){var responseText;var propObj;var pairsArray;var pairIndex;var keyValueArray;var pairKey;var pairValue;var messageElts;var eltIndex;var messageEltId;responseText=xmlHttp.responseText;propObj=new Object();pairsArray=responseText.split('#');for(pairIndex=pairsArray.length-1;pairIndex>=0;pairIndex--){if(pairIndex==0){responseText=pairsArray[0];}
else{keyValueArray=(pairsArray[pairIndex]).split('=');pairKey=''+unescape(keyValueArray[0]);pairValue=''+unescape(keyValueArray[1]);propObj[pairKey]=pairValue;}}
if(parseInt(propObj['rateapicRefreshEnabled'])&&propObj['refreshPageUrl']){location.href=propObj['refreshPageUrl'];}
isReadyToRateNext=parseInt(propObj['isReadyToRateNext']);if(isReadyToRateNext){thePrevImgId=propObj['thePrevImgId'];thePrevImgPath=propObj['thePrevImgPath'];thePrevImgWidth=parseInt(propObj['thePrevImgWidth']);thePrevImgHeight=parseInt(propObj['thePrevImgHeight']);thePrevImgRatingAvg=propObj['thePrevImgRatingAvg'];thePrevImgRatingVal=propObj['thePrevImgRatingVal'];showAvg=parseInt(propObj['showAvg']);theNextImgId=propObj['theNextImgId'];theNextImgPath=propObj['theNextImgPath'];theNextImgWidth=parseInt(propObj['theNextImgWidth']);theNextImgHeight=parseInt(propObj['theNextImgHeight']);theNextImgDesc=propObj['theNextImgDesc'];theNextImgCaption=propObj['theNextImgCaption'];if(document.getElementById(style+'_currentrateapic_img')){theNextImgObj=document.getElementById(style+'_currentrateapic_img');theNextImgObj.src=theNextImgPath;theNextImgObj.width=theNextImgWidth;theNextImgObj.height=theNextImgHeight;document.getElementById(style+'_currentrateapic_imgdesc').innerHTML=theNextImgDesc;document.getElementById(style+'_currentrateapic_imgcaption').innerHTML=theNextImgCaption;if(document.getElementById(style+'_prevrateapic_img')){thePrevDivObj=document.getElementById(style+'_prevrateapic_div');thePrevRateInfoSpanObj=document.getElementById(style+'_prevrateapic_rateInfo');theChildNodes=thePrevRateInfoSpanObj.childNodes;if(thePrevDivObj.childNodes){while(theChildNodes.length){thePrevRateInfoSpanObj.removeChild(thePrevRateInfoSpanObj.lastChild);}}
thePrevImgObj=document.getElementById(style+'_prevrateapic_img');thePrevImgObj.src=thePrevImgPath;thePrevImgObj.width=thePrevImgWidth;thePrevImgObj.height=thePrevImgHeight;thePrevDivObj.style.display="inline";avgRating='';ratingVal='';if(showAvg){thePrevRateInfoSpanObj.appendChild(document.createElement("br"));thePrevRateInfoSpanObj.appendChild(document.createTextNode("Avg Rating: "+thePrevImgRatingAvg));}
thePrevRateInfoSpanObj.appendChild(document.createElement("br"));thePrevRateInfoSpanObj.appendChild(document.createTextNode("You gave: "+thePrevImgRatingVal));}}}
document.getElementById(displayId).innerHTML=responseText}
else{document.getElementById(displayId).innerHTML=xmlHttp.responseText;}}
else{document.getElementById(displayId).innerHTML='<input type="image" src="/image/spinner.gif" border="0" alt="process going on" ><font class="'+style+'Label">Loading...... Please Wait.</font>';return;}}
function GetXmlHttpObject()
{var objXMLHttp=null
if(window.XMLHttpRequest)
{objXMLHttp=new XMLHttpRequest()}
else if(window.ActiveXObject)
{objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")}
return objXMLHttp}
function displayRatingFromGalleryThumbnailBox(imageGalleryXRefId)
{var imageGalaryDivObj=document.getElementById('ratingDiv_'+imageGalleryXRefId);var ratingDivObj=document.getElementById(imageGalleryXRefId+'_imageGallaryChild');var cloneObj;if(imageGalaryDivObj&&imageGalaryDivObj!='undefined')
{imageGalaryDivObj.appendChild(ratingDivObj);ratingDivObj.style.display='';}}
function displayRatingFromContentBox(imageGalleryXRefId)
{var imageGalaryDivObj=document.getElementById('ratingDiv_'+imageGalleryXRefId);var ratingDivObj=document.getElementById(imageGalleryXRefId+'_imageGallaryChild');var cloneObj;if(ratingDivObj&&ratingDivObj!='undefined')
{imageGalaryDivObj.appendChild(ratingDivObj);ratingDivObj.style.display='';}}
function checkIfIsRateaPic(theDivPrefix){if(document.getElementById(theDivPrefix+"_prevrateapic_div")){return true;}
else{return false;}}
function reloadIFrameContent()
{var IFrames=document.getElementsByTagName('iframe');if(IFrames.length>0&&IFrames!='undefined')
{for(var i=0;i<IFrames.length;i++)
{var iSource=IFrames[i].src;IFrames[i].src='';IFrames[i].src=iSource;}}}
function LoadIFrameWithUrlContent(frameName,url)
{frames[frameName].window.location.href=url;}
function backFlipperText(boxId)
{var updateDiv;var flipperContent;if((index[boxId]>=0)&&(index[boxId]<numElements[boxId]))
{if(isRunning[boxId])
{clearTimeout(timeOutID[boxId]);isRunning[boxId]=false;}
index[boxId]--;if(index[boxId]<0)
{index[boxId]=numElements[boxId]-1;}
if(getElement("hidden_"+boxId+'_'+index[boxId])===null)
{backFlipperText(boxId);}
else
{updateDiv=getElement("hidden_"+boxId+'_'+index[boxId]);flipperContent=getElement("flipperContent_"+boxId);flipperContent.innerHTML=updateDiv.innerHTML;}}}
function forwardFlipperText(boxId)
{var updateDiv;var flipperContent;if((index[boxId]<numElements[boxId])&&(index[boxId]>=0))
{if(isRunning[boxId])
{clearTimeout(timeOutID[boxId]);isRunning[boxId]=false;}
index[boxId]++;if(index[boxId]+1>numElements[boxId])
{index[boxId]=0;}
if(getElement("hidden_"+boxId+'_'+index[boxId])===null)
{forwardFlipperText(boxId);}
else
{updateDiv=getElement("hidden_"+boxId+'_'+index[boxId]);flipperContent=getElement("flipperContent_"+boxId);flipperContent.innerHTML=updateDiv.innerHTML;}}}
function pauseFlipperText(boxId)
{if(isRunning[boxId])
{clearTimeout(timeOutID[boxId]);isRunning[boxId]=false;}}
function startFlipperText(boxId)
{if(isRunning[boxId])
{clearTimeout(timeOutID[boxId]);isRunning[boxId]=false;}
timeOutID[boxId]=setTimeout('updateFlipperText(\''+boxId+'\')',delay[boxId]);isRunning[boxId]=true;}
function ddtabcontent(tabinterfaceid){this.tabinterfaceid=tabinterfaceid
this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a")
this.enabletabpersistence=true
this.hottabspositions=[]
this.currentTabIndex=0
this.subcontentids=[]
this.revcontentids=[]
this.selectedClassTarget="link"}
ddtabcontent.getCookie=function(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1]
return""}
ddtabcontent.setCookie=function(name,value){document.cookie=name+"="+value+";path=/"}
ddtabcontent.prototype={expandit:function(tabid_or_position){this.cancelautorun()
var tabref=""
try{if(typeof tabid_or_position=="string"&&document.getElementById(tabid_or_position).getAttribute("rel"))
tabref=document.getElementById(tabid_or_position)
else if(parseInt(tabid_or_position)!=NaN&&this.tabs[tabid_or_position].getAttribute("rel"))
tabref=this.tabs[tabid_or_position]}
catch(err){alert("Invalid Tab ID or position entered!")}
if(tabref!="")
this.expandtab(tabref)},cycleit:function(dir,autorun){if(dir=="next"){var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)?this.currentTabIndex+1:0}
else if(dir=="prev"){var currentTabIndex=(this.currentTabIndex>0)?this.currentTabIndex-1:this.hottabspositions.length-1}
if(typeof autorun=="undefined")
this.cancelautorun()
this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])},setpersist:function(bool){this.enabletabpersistence=bool},setselectedClassTarget:function(objstr){this.selectedClassTarget=objstr||"link"},getselectedClassTarget:function(tabref){return(this.selectedClassTarget==("linkparent".toLowerCase()))?tabref.parentNode:tabref},urlparamselect:function(tabinterfaceid){var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)","i"))
return(result==null)?null:parseInt(RegExp.$1)},expandtab:function(tabref){var subcontentid=tabref.getAttribute("rel")
var associatedrevids=(tabref.getAttribute("rev"))?","+tabref.getAttribute("rev").replace(/\s+/,"")+",":""
this.expandsubcontent(subcontentid)
this.expandrevcontent(associatedrevids)
for(var i=0;i<this.tabs.length;i++){this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)?"selected":""}
if(this.enabletabpersistence)
ddtabcontent.setCookie(this.tabinterfaceid,tabref.tabposition)
this.setcurrenttabindex(tabref.tabposition)},expandsubcontent:function(subcontentid){for(var i=0;i<this.subcontentids.length;i++){var subcontent=document.getElementById(this.subcontentids[i])
subcontent.style.display=(subcontent.id==subcontentid)?"block":"none"}},expandrevcontent:function(associatedrevids){var allrevids=this.revcontentids
for(var i=0;i<allrevids.length;i++){document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)?"block":"none"}},setcurrenttabindex:function(tabposition){for(var i=0;i<this.hottabspositions.length;i++){if(tabposition==this.hottabspositions[i]){this.currentTabIndex=i
break}}},autorun:function(){this.cycleit('next',true)},cancelautorun:function(){if(typeof this.autoruntimer!="undefined")
clearInterval(this.autoruntimer)},init:function(automodeperiod){var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid)
var selectedtab=-1
var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid)
this.automodeperiod=automodeperiod||0
for(var i=0;i<this.tabs.length;i++){this.tabs[i].tabposition=i
if(this.tabs[i].getAttribute("rel")){var tabinstance=this
this.hottabspositions[this.hottabspositions.length]=i
this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel")
this.tabs[i].onclick=function(){tabinstance.expandtab(this)
tabinstance.cancelautorun()
return false}
if(this.tabs[i].getAttribute("rev")){this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))}
if(selectedtabfromurl==i||this.enabletabpersistence&&selectedtab==-1&&parseInt(persistedtab)==i||!this.enabletabpersistence&&selectedtab==-1&&this.getselectedClassTarget(this.tabs[i]).className=="selected"){selectedtab=i}}}
if(selectedtab!=-1)
this.expandtab(this.tabs[selectedtab])
else
this.expandtab(this.tabs[this.hottabspositions[0]])
if(parseInt(this.automodeperiod)>500&&this.hottabspositions.length>1){this.autoruntimer=setInterval(function(){tabinstance.autorun()},this.automodeperiod)}}}
function swapNavImage(el,fileName,width,height){if(el){el.src=fileName;el.width=width;el.height=height;}}
function showElement(elName){if(getElement(elName)){getElement(elName).style.display='block';}}
function hideElement(elName){if(getElement(elName)){getElement(elName).style.display='none';}}
function hoverElement(current,stat){var hidemenu="hide-menu";var activemenu='active-menu';var hovermenu='hover-menu';menus=document.getElementById(current).parentNode.getElementsByTagName('UL');itemname=current+'-';for(var i=0;i<menus.length;i++){menus[i].setAttribute('class',hidemenu);menus[i].setAttribute('className',hidemenu);}
for(var i=0;i<menus.length;i++){if(menus[i].id==itemname){if(stat=='default'){menus[i].setAttribute('class',activemenu);menus[i].setAttribute('className',activemenu);}else{if(stat=='show'){menus[i].setAttribute('class',hovermenu);menus[i].setAttribute('className',hovermenu);menus[i].style.overflow="visible";}else{menus[i].setAttribute('class',hidemenu);menus[i].setAttribute('className',hidemenu);}}}}}
function initMenu(menun){menus=document.getElementById(menun).getElementsByTagName("LI");for(var i=0;i<menus.length;i++){document.getElementById(menus[i].id).onmouseover=function(){hoverElement(this.getAttribute("id"),'show');}
document.getElementById(menus[i].id).onmouseout=function(){hoverElement(this.getAttribute("id"),'hide');}}}
var RecaptchaTemplates={VertHtml:'<table id="recaptcha_table" class="recaptchatable" >\n<tr>\n<td colspan="6" class=\'recaptcha_r1_c1\'></td>\n</tr>\n<tr>\n<td class=\'recaptcha_r2_c1\'></td>\n<td colspan="4" class=\'recaptcha_image_cell\'><div id="recaptcha_image"></div></td>\n<td class=\'recaptcha_r2_c2\'></td>\n</tr>\n<tr>\n<td rowspan="6" class=\'recaptcha_r3_c1\'></td>\n<td colspan="4" class=\'recaptcha_r3_c2\'></td>\n<td rowspan="6" class=\'recaptcha_r3_c3\'></td>\n</tr>\n<tr>\n<td rowspan="3" class=\'recaptcha_r4_c1\' height="49">\n<div class="recaptcha_input_area">\n<label for="recaptcha_response_field" class="recaptcha_input_area_text"><span id="recaptcha_instructions_image" class="recaptcha_only_if_image recaptcha_only_if_no_incorrect_sol"></span><span id="recaptcha_instructions_audio" class="recaptcha_only_if_no_incorrect_sol recaptcha_only_if_audio"></span><span id="recaptcha_instructions_error" class="recaptcha_only_if_incorrect_sol"></span></label><br/>\n<input name="recaptcha_response_field" id="recaptcha_response_field" type="text" />\n</div>\n</td>\n<td rowspan="4" class=\'recaptcha_r4_c2\'></td>\n<td><a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="17" /></a></td>\n<td rowspan="4" class=\'recaptcha_r4_c4\'></td>\n</tr>\n<tr>\n<td><a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="16" alt="" /></a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="16" alt=""/></a></td>\n</tr>\n<tr>\n<td><a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /></a></td>\n</tr>\n<tr>\n<td class=\'recaptcha_r7_c1\'></td>\n<td class=\'recaptcha_r8_c1\'></td>\n</tr>\n</table>\n',VertCss:'.recaptchatable td img {\n/* see http://developer.mozilla.org/en/docs/Images%2C_Tables%2C_and_Mysterious_Gaps */\ndisplay: block;\n}\n.recaptchatable .recaptcha_r1_c1 { background: url(IMGROOT/sprite.png) -0px -63px no-repeat; width: 318px; height: 9px; }\n.recaptchatable .recaptcha_r2_c1 { background: url(IMGROOT/sprite.png) -18px -0px no-repeat; width: 9px; height: 57px; }\n.recaptchatable .recaptcha_r2_c2 { background: url(IMGROOT/sprite.png) -27px -0px no-repeat; width: 9px; height: 57px; }\n.recaptchatable .recaptcha_r3_c1 { background: url(IMGROOT/sprite.png) -0px -0px no-repeat; width: 9px; height: 63px; }\n.recaptchatable .recaptcha_r3_c2 { background: url(IMGROOT/sprite.png) -18px -57px no-repeat; width: 300px; height: 6px; }\n.recaptchatable .recaptcha_r3_c3 { background: url(IMGROOT/sprite.png) -9px -0px no-repeat; width: 9px; height: 63px; }\n.recaptchatable .recaptcha_r4_c1 { background: url(IMGROOT/sprite.png) -43px -0px no-repeat; width: 171px; height: 49px; }\n.recaptchatable .recaptcha_r4_c2 { background: url(IMGROOT/sprite.png) -36px -0px no-repeat; width: 7px; height: 57px; }\n.recaptchatable .recaptcha_r4_c4 { background: url(IMGROOT/sprite.png) -214px -0px no-repeat; width: 97px; height: 57px; }\n.recaptchatable .recaptcha_r7_c1 { background: url(IMGROOT/sprite.png) -43px -49px no-repeat; width: 171px; height: 8px; }\n.recaptchatable .recaptcha_r8_c1 { background: url(IMGROOT/sprite.png) -43px -49px no-repeat; width: 25px; height: 8px; }\n.recaptchatable .recaptcha_image_cell center img { height:57px;}\n.recaptchatable .recaptcha_image_cell center { height:57px;}\n.recaptchatable .recaptcha_image_cell {\nbackground-color:white; height:57px;\n}\n/* some people break their style sheet, we need to clean up after them */\n#recaptcha_area, #recaptcha_table {\nwidth: 318px !important;\n}\n.recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {\nmargin:0px !important;\nborder:0px !important;\npadding:0px !important;\nborder-collapse: collapse !important;\nvertical-align: middle !important;\n}\n.recaptchatable * {\nmargin:0px;\npadding:0px;\nborder:0px;\nfont-family:helvetica,sans-serif;\nfont-size:8pt;\ncolor:black;\nposition:static;\ntop:auto;\nleft:auto;\nright:auto;\nbottom:auto;\ntext-align:left !important;\n}\n.recaptchatable #recaptcha_image {\nmargin:auto;\n}\n.recaptchatable img {\nborder:0px !important;\nmargin:0px !important;\npadding:0px !important;\n}\n.recaptchatable a, .recaptchatable a:hover {\n-moz-outline:none;\nborder:0px !important;\npadding:0px !important;\ntext-decoration:none;\ncolor:blue;\nbackground:none !important;\nfont-weight: normal;\n}\n.recaptcha_input_area {\nposition:relative !important;\nwidth:146px !important;\nheight:45px !important;\nmargin-left:20px !important;\nmargin-right:5px !important;\nmargin-top:4px !important;\nbackground:none !important;\n}\n.recaptchatable label.recaptcha_input_area_text {\nmargin:0px !important;  \npadding:0px !important;\nposition:static !important;\ntop:auto !important;\nleft:auto !important;\nright:auto !important;\nbottom:auto !important;\nbackground:none !important;\nheight:auto !important;\nwidth:auto !important;\n}\n.recaptcha_theme_red label.recaptcha_input_area_text,\n.recaptcha_theme_white label.recaptcha_input_area_text {\ncolor:black !important;\n}\n.recaptcha_theme_blackglass label.recaptcha_input_area_text {\ncolor:white !important;\n}\n.recaptchatable #recaptcha_response_field  {\nwidth:145px !important;\nposition:absolute !important;\nbottom:7px !important;\npadding:0px !important;\nmargin:0px !important;\nfont-size:10pt;\n}\n.recaptcha_theme_blackglass #recaptcha_response_field,\n.recaptcha_theme_white #recaptcha_response_field {\nborder: 1px solid gray;\n}\n.recaptcha_theme_red #recaptcha_response_field {\nborder:1px solid #cca940;\n}\n.recaptcha_audio_cant_hear_link {\nfont-size:7pt;\ncolor:black;\n}\n.recaptchatable {\nline-height:1em;\n}\n#recaptcha_instructions_error {\ncolor:red !important;\n}\n',CleanHtml:'<table id="recaptcha_table" class="recaptchatable">\n<tr height="73">\n<td class=\'recaptcha_image_cell\' width="302"><center><div id="recaptcha_image"></div></center></td>\n<td style="padding: 10px 7px 7px 7px;">\n<a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="18" alt="" /></a>\n<a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="15" alt="" /></a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="15" alt=""/></a>\n<a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /></a>\n</td>\n<td style="padding: 18px 7px 18px 7px;">\n<img id=\'recaptcha_logo\' alt="" width="71" height="36" />\n</td>\n</tr>\n<tr>\n<td style="padding-left: 7px;">\n<div class="recaptcha_input_area" style="padding-top: 2px; padding-bottom: 7px;">\n<input style="border: 1px solid #3c3c3c; width: 302px;" name="recaptcha_response_field" id="recaptcha_response_field" type="text" />\n</div>\n</td>\n<td></td>\n<td style="padding: 4px 7px 12px 7px;">\n<img id="recaptcha_tagline" width="71" height="17" />\n</td>\n</tr>\n</table>\n',CleanCss:'.recaptchatable td img {\ndisplay: block;\n}\n.recaptchatable .recaptcha_image_cell center img { height:57px;}\n.recaptchatable .recaptcha_image_cell center { height:57px;}\n.recaptchatable .recaptcha_image_cell {\nbackground-color:white; height:57px; \npadding: 7px !important;\n}\n.recaptchatable, #recaptcha_area tr, #recaptcha_area td, #recaptcha_area th {\nmargin:0px !important;\nborder:0px !important;\nborder-collapse: collapse !important;\nvertical-align: middle !important;\n}\n.recaptchatable * {\nmargin:0px;\npadding:0px;\nborder:0px;\ncolor:black;\nposition:static;\ntop:auto;\nleft:auto;\nright:auto;\nbottom:auto;\ntext-align:left !important;\n}\n.recaptchatable #recaptcha_image {\nmargin:auto;\nborder: 1px solid #dfdfdf !important;\n}\n.recaptchatable a img {\nborder:0px;\n}\n.recaptchatable a, .recaptchatable a:hover {\n-moz-outline:none;\nborder:0px !important;\npadding:0px !important;\ntext-decoration:none;\ncolor:blue;\nbackground:none !important;\nfont-weight: normal;\n}\n.recaptcha_input_area {\nposition:relative !important;\nbackground:none !important;\n}\n.recaptchatable label.recaptcha_input_area_text {\nborder:1px solid #dfdfdf !important;\nmargin:0px !important;  \npadding:0px !important;\nposition:static !important;\ntop:auto !important;\nleft:auto !important;\nright:auto !important;\nbottom:auto !important;\n}\n.recaptcha_theme_red label.recaptcha_input_area_text,\n.recaptcha_theme_white label.recaptcha_input_area_text {\ncolor:black !important;\n}\n.recaptcha_theme_blackglass label.recaptcha_input_area_text {\ncolor:white !important;\n}\n.recaptchatable #recaptcha_response_field  {\nfont-size:11pt;\n}\n.recaptcha_theme_blackglass #recaptcha_response_field,\n.recaptcha_theme_white #recaptcha_response_field {\nborder: 1px solid gray;\n}\n.recaptcha_theme_red #recaptcha_response_field {\nborder:1px solid #cca940;\n}\n.recaptcha_audio_cant_hear_link {\nfont-size:7pt;\ncolor:black;\n}\n.recaptchatable {\nline-height:1em;\nborder: 1px solid #dfdfdf !important;\n}\n.recaptcha_error_text {\ncolor:red;\n}\n'};var RecaptchaStr_en={visual_challenge:"Get a visual challenge",audio_challenge:"Get an audio challenge",refresh_btn:"Get a new challenge",instructions_visual:"Type the two words:",instructions_audio:"Type what you hear:",help_btn:"Help",play_again:"Play sound again",cant_hear_this:"Download sound as MP3",incorrect_try_again:"Incorrect. Try again."};var RecaptchaStr_de={visual_challenge:"Visuelle Aufgabe generieren",audio_challenge:"Audio-Aufgabe generieren",refresh_btn:"Neue Aufgabe generieren",instructions_visual:"Gib die 2 W\u00f6rter ein:",instructions_audio:"Gib die 8 Ziffern ein:",help_btn:"Hilfe",incorrect_try_again:"Falsch. Nochmals versuchen!"};var RecaptchaStr_es={visual_challenge:"Obt\u00e9n un reto visual",audio_challenge:"Obt\u00e9n un reto audible",refresh_btn:"Obt\u00e9n un nuevo reto",instructions_visual:"Escribe las 2 palabras:",instructions_audio:"Escribe los 8 n\u00fameros:",help_btn:"Ayuda",incorrect_try_again:"Incorrecto. Otro intento."};var RecaptchaStr_fr={visual_challenge:"D\u00e9fi visuel",audio_challenge:"D\u00e9fi audio",refresh_btn:"Nouveau d\u00e9fi",instructions_visual:"Entrez les deux mots:",instructions_audio:"Entrez les huit chiffres:",help_btn:"Aide",incorrect_try_again:"Incorrect."};var RecaptchaStr_nl={visual_challenge:"Test me via een afbeelding",audio_challenge:"Test me via een geluidsfragment",refresh_btn:"Nieuwe uitdaging",instructions_visual:"Type de twee woorden:",instructions_audio:"Type de acht cijfers:",help_btn:"Help",incorrect_try_again:"Foute invoer."};var RecaptchaStr_pt={visual_challenge:"Obter um desafio visual",audio_challenge:"Obter um desafio sonoro",refresh_btn:"Obter um novo desafio",instructions_visual:"Escreva as 2 palavras:",instructions_audio:"Escreva os 8 numeros:",help_btn:"Ajuda",incorrect_try_again:"Incorrecto. Tenta outra vez."};var RecaptchaStr_ru={visual_challenge:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443",audio_challenge:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0437\u0432\u0443\u043a\u043e\u0432\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443",refresh_btn:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443",instructions_visual:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0432\u0430 \u0441\u043b\u043e\u0432\u0430:",instructions_audio:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0447\u0438\u0441\u0435\u043b:",help_btn:"\u041f\u043e\u043c\u043e\u0449\u044c",incorrect_try_again:"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e."};var RecaptchaStr_tr={visual_challenge:"G\u00f6rsel deneme",audio_challenge:"\u0130\u015Fitsel deneme",refresh_btn:"Yeni deneme",instructions_visual:"\u0130ki kelimeyi yaz\u0131n:",instructions_audio:"Sekiz numaray\u0131 yaz\u0131n:",help_btn:"Yard\u0131m (\u0130ngilizce)",incorrect_try_again:"Yanl\u0131\u015f. Bir daha deneyin."};var RecaptchaLangMap={en:RecaptchaStr_en,de:RecaptchaStr_de,es:RecaptchaStr_es,fr:RecaptchaStr_fr,nl:RecaptchaStr_nl,pt:RecaptchaStr_pt,ru:RecaptchaStr_ru,tr:RecaptchaStr_tr};var RecaptchaStr=RecaptchaStr_en;var RecaptchaOptions;var RecaptchaDefaultOptions={tabindex:0,theme:'red',callback:null,lang:'en',custom_theme_widget:null,custom_translations:null};var Recaptcha={widget:null,timer_id:-1,style_set:false,theme:null,type:'image',ajax_verify_cb:null,$:function(id){if(typeof(id)=="string"){return document.getElementById(id);}
else{return id;}},create:function(public_key,element,options){Recaptcha.destroy();if(element){Recaptcha.widget=Recaptcha.$(element);}
Recaptcha._init_options(options);Recaptcha._call_challenge(public_key);},destroy:function(){var challengefield=Recaptcha.$('recaptcha_challenge_field');if(challengefield){challengefield.parentNode.removeChild(challengefield);}
if(Recaptcha.timer_id!=-1){clearInterval(Recaptcha.timer_id);}
Recaptcha.timer_id=-1;var imagearea=Recaptcha.$('recaptcha_image');if(imagearea){imagearea.innerHTML="";}
if(Recaptcha.widget){if(Recaptcha.theme!="custom"){Recaptcha.widget.innerHTML="";}else{Recaptcha.widget.style.display="none";}
Recaptcha.widget=null;}},focus_response_field:function(){var $=Recaptcha.$;var field=$('recaptcha_response_field');field.focus();},get_challenge:function(){if(typeof(RecaptchaState)=="undefined"){return null;}
return RecaptchaState.challenge;},get_response:function(){var $=Recaptcha.$;var field=$('recaptcha_response_field');if(!field){return null;}
return field.value;},ajax_verify:function(callback){Recaptcha.ajax_verify_cb=callback;var scriptURL=Recaptcha._get_api_server()+"/ajaxverify"+"?c="+encodeURIComponent(Recaptcha.get_challenge())+"&response="+encodeURIComponent(Recaptcha.get_response());Recaptcha._add_script(scriptURL);},_ajax_verify_callback:function(data){Recaptcha.ajax_verify_cb(data);},_get_api_server:function(){var protocol=window.location.protocol;var server;if(typeof(_RecaptchaOverrideApiServer)!="undefined"){server=_RecaptchaOverrideApiServer;}else if(protocol=='https:'){server="api-secure.recaptcha.net";}else{server="api.recaptcha.net";}
return protocol+"//"+server;},_call_challenge:function(public_key){var scriptURL=Recaptcha._get_api_server()+"/challenge?k="+public_key+"&ajax=1&cachestop="+Math.random();if(typeof(RecaptchaOptions.extra_challenge_params)!="undefined"){scriptURL+="&"+RecaptchaOptions.extra_challenge_params;}
Recaptcha._add_script(scriptURL);},_add_script:function(scriptURL){var scriptTag=document.createElement("script");scriptTag.type="text/javascript";scriptTag.src=scriptURL;Recaptcha._get_script_area().appendChild(scriptTag);},_get_script_area:function(){var parentElement=document.getElementsByTagName("head");if(!parentElement||parentElement.length<1){parentElement=document.body;}
else{parentElement=parentElement[0];}
return parentElement;},_hash_merge:function(hashes){var r={};for(var h in hashes){for(var k in hashes[h]){r[k]=hashes[h][k]}}
return r;},_init_options:function(opts){RecaptchaOptions=Recaptcha._hash_merge([RecaptchaDefaultOptions,opts||{}]);},challenge_callback:function(){var element=Recaptcha.widget;Recaptcha._reset_timer();RecaptchaStr=Recaptcha._hash_merge([RecaptchaStr_en,RecaptchaLangMap[RecaptchaOptions.lang]||{},RecaptchaOptions.custom_translations||{}]);if(window.addEventListener){window.addEventListener('unload',function(e){Recaptcha.destroy();},false);}
if(Recaptcha._is_ie()&&window.attachEvent){window.attachEvent('onbeforeunload',function(){});}
if(navigator.userAgent.indexOf("KHTML")>0){var iframe=document.createElement('iframe');iframe.src="about:blank";iframe.style.height="0px";iframe.style.width="0px";iframe.style.visibility="hidden";iframe.style.border="none";var textNode=document.createTextNode("This frame prevents back/forward cache problems in Safari.");iframe.appendChild(textNode);document.body.appendChild(iframe);}
Recaptcha._finish_widget();},_add_css:function(css){var styleTag=document.createElement("style");styleTag.type="text/css";if(styleTag.styleSheet){if(navigator.appVersion.indexOf("MSIE 5")!=-1){document.write("<style type='text/css'>"+css+"</style>");}
else{styleTag.styleSheet.cssText=css;}}else if(navigator.appVersion.indexOf("MSIE 5")!=-1){document.write("<style type='text/css'>"+css+"</style>");}
else{var textNode=document.createTextNode(css);styleTag.appendChild(textNode);}
Recaptcha._get_script_area().appendChild(styleTag);},_set_style:function(css){if(Recaptcha.style_set){return;}
Recaptcha.style_set=true;Recaptcha._add_css(css+"\n\n"+".recaptcha_is_showing_audio .recaptcha_only_if_image,"+".recaptcha_isnot_showing_audio .recaptcha_only_if_audio,"+".recaptcha_had_incorrect_sol .recaptcha_only_if_no_incorrect_sol,"+".recaptcha_nothad_incorrect_sol .recaptcha_only_if_incorrect_sol"+"{display:none !important}");},_init_builtin_theme:function(){var $=Recaptcha.$;var $_=RecaptchaStr;var $ST=RecaptchaState;var css,html,imgfmt;var server_no_slash=$ST.server;if(server_no_slash[server_no_slash.length-1]=="/")
server_no_slash=server_no_slash.substring(0,server_no_slash.length-1);var IMGROOT=server_no_slash+"/img/"+Recaptcha.theme;if(Recaptcha.theme=='clean'){css=RecaptchaTemplates.CleanCss;html=RecaptchaTemplates.CleanHtml;imgfmt='png';}
else{css=RecaptchaTemplates.VertCss;html=RecaptchaTemplates.VertHtml;imgfmt='gif';}
css=css.replace(/IMGROOT/g,IMGROOT);Recaptcha._set_style(css);Recaptcha.widget.innerHTML="<div id='recaptcha_area'>"+html+"</div>";$('recaptcha_reload').src=IMGROOT+"/refresh."+imgfmt;$('recaptcha_switch_audio').src=IMGROOT+"/audio."+imgfmt;$('recaptcha_switch_img').src=IMGROOT+"/text."+imgfmt;$('recaptcha_whatsthis').src=IMGROOT+"/help."+imgfmt;if(Recaptcha.theme=='clean'){$('recaptcha_logo').src=IMGROOT+"/logo."+imgfmt;$('recaptcha_tagline').src=IMGROOT+"/tagline."+imgfmt;}
$('recaptcha_reload').alt=$_.refresh_btn;$('recaptcha_switch_audio').alt=$_.audio_challenge;$('recaptcha_switch_img').alt=$_.visual_challenge;$('recaptcha_whatsthis').alt=$_.help_btn;$('recaptcha_reload_btn').href="javascript:Recaptcha.reload ();";$('recaptcha_reload_btn').title=$_.refresh_btn;$('recaptcha_switch_audio_btn').href="javascript:Recaptcha.switch_type('audio');";$('recaptcha_switch_audio_btn').title=$_.audio_challenge;$('recaptcha_switch_img_btn').href="javascript:Recaptcha.switch_type('image');";$('recaptcha_switch_img_btn').title=$_.visual_challenge;$('recaptcha_whatsthis_btn').href=Recaptcha._get_help_link();$('recaptcha_whatsthis_btn').target="_blank";$('recaptcha_whatsthis_btn').title=$_.help_btn;$('recaptcha_whatsthis_btn').onclick=function(){Recaptcha.showhelp();return false;};$('recaptcha_table').className="recaptchatable "+"recaptcha_theme_"+Recaptcha.theme;if($("recaptcha_instructions_image")){$("recaptcha_instructions_image").appendChild(document.createTextNode($_.instructions_visual));}
if($("recaptcha_instructions_audio")){$("recaptcha_instructions_audio").appendChild(document.createTextNode($_.instructions_audio));}
if($("recaptcha_instructions_error")){$("recaptcha_instructions_error").appendChild(document.createTextNode($_.incorrect_try_again));}},_finish_widget:function(){var $=Recaptcha.$;var $_=RecaptchaStr;var $ST=RecaptchaState;var $OPT=RecaptchaOptions;var theme=$OPT.theme;switch(theme){case'red':case'white':case'blackglass':case'clean':case'custom':break;default:theme='red';break;}
if(!Recaptcha.theme){Recaptcha.theme=theme;}
if(Recaptcha.theme!="custom"){Recaptcha._init_builtin_theme();}else{Recaptcha._set_style("");}
var challengeFieldHolder=document.createElement("span");challengeFieldHolder.id="recaptcha_challenge_field_holder";challengeFieldHolder.style.display="none";$('recaptcha_response_field').parentNode.insertBefore(challengeFieldHolder,$('recaptcha_response_field'));$('recaptcha_response_field').setAttribute("autocomplete","off");$('recaptcha_image').style.width='300px';$('recaptcha_image').style.height='57px';Recaptcha.should_focus=false;Recaptcha._set_challenge($ST.challenge,'image');if($OPT.tabindex){$('recaptcha_response_field').tabIndex=$OPT.tabindex;if(Recaptcha.theme!="custom"){$('recaptcha_whatsthis_btn').tabIndex=$OPT.tabindex;$('recaptcha_switch_img_btn').tabIndex=$OPT.tabindex;$('recaptcha_switch_audio_btn').tabIndex=$OPT.tabindex;$('recaptcha_reload_btn').tabIndex=$OPT.tabindex;}}
if(Recaptcha.widget){Recaptcha.widget.style.display='';}
if($OPT.callback){$OPT.callback();}},switch_type:function(new_type){var $C=Recaptcha;$C.type=new_type;$C.reload($C.type=='audio'?'a':'v');},reload:function(reason){var $C=Recaptcha;var $=$C.$;var $ST=RecaptchaState;if(typeof(reason)=="undefined")
reason='r';var scriptURL=$ST.server+"reload?c="+$ST.challenge+"&k="+$ST.site+"&reason="+reason+"&type="+$C.type+"&lang="+RecaptchaOptions.lang;if(typeof(RecaptchaOptions.extra_challenge_params)!="undefined"){scriptURL+="&"+RecaptchaOptions.extra_challenge_params;}
if($C.type=='audio'){if(RecaptchaOptions.audio_beta_12_08){scriptURL+="&audio_beta_12_08=1";}else{scriptURL+="&new_audio_default=1";}}
$C.should_focus=reason!='t';$C._add_script(scriptURL);},finish_reload:function(new_challenge,type){RecaptchaState.is_incorrect=false;Recaptcha._set_challenge(new_challenge,type);},_set_challenge:function(new_challenge,type)
{var $C=Recaptcha;var $ST=RecaptchaState;var $=$C.$;$ST.challenge=new_challenge;$C.type=type;$('recaptcha_challenge_field_holder').innerHTML="<input type='hidden' name='recaptcha_challenge_field' id='recaptcha_challenge_field' value='"+$ST.challenge+"'/>";if(type=='audio'){$("recaptcha_image").innerHTML=Recaptcha.getAudioCaptchaHtml();}else if(type=='image'){var imageurl=$ST.server+'image?c='+$ST.challenge;$('recaptcha_image').innerHTML="<img style='display:block;' height='57' width='300' src='"+imageurl+"'/>";}
Recaptcha._css_toggle("recaptcha_had_incorrect_sol","recaptcha_nothad_incorrect_sol",$ST.is_incorrect);Recaptcha._css_toggle("recaptcha_is_showing_audio","recaptcha_isnot_showing_audio",type=='audio');$C._clear_input();if($C.should_focus){$C.focus_response_field();}
$C._reset_timer();},_reset_timer:function(){var $ST=RecaptchaState;clearInterval(Recaptcha.timer_id);Recaptcha.timer_id=setInterval("Recaptcha.reload('t');",($ST.timeout-60*5)*1000);},showhelp:function(){window.open(Recaptcha._get_help_link(),"recaptcha_popup","width=460,height=570,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes");},_clear_input:function(){var resp=Recaptcha.$('recaptcha_response_field');resp.value="";},_displayerror:function(msg){var $=Recaptcha.$;$('recaptcha_image').innerHTML='';$('recaptcha_image').appendChild(document.createTextNode(msg));},reloaderror:function(msg){Recaptcha._displayerror(msg);},_is_ie:function(){return(navigator.userAgent.indexOf("MSIE")>0)&&!window.opera;},_css_toggle:function(classT,classF,isset){var element=Recaptcha.widget;if(!element)
element=document.body;var classname=element.className;classname=classname.replace(new RegExp("(^|\\s+)"+classT+"(\\s+|$)"),' ');classname=classname.replace(new RegExp("(^|\\s+)"+classF+"(\\s+|$)"),' ');classname+=" "+(isset?classT:classF);element.className=classname;},_get_help_link:function(){var lang=RecaptchaOptions.lang;return'http://recaptcha.net/popuphelp/'+(lang=='en'?"":(lang+".html"));},playAgain:function(){var $=Recaptcha.$;$("recaptcha_image").innerHTML=Recaptcha.getAudioCaptchaHtml();},getAudioCaptchaHtml:function(){var $C=Recaptcha;var $ST=RecaptchaState;var $=Recaptcha.$;var httpwavurl=$ST.server+"image?c="+$ST.challenge;if(httpwavurl.indexOf("https://")==0){httpwavurl="http://"+httpwavurl.substring(8);}
var swfUrl=$ST.server+"/img/audiocaptcha.swf";var embedCode;if($C._is_ie()){embedCode='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="audiocaptcha" width="0" height="0" codebase="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="'+swfUrl+'" /><param name="quality" value="high" /><param name="bgcolor" value="#869ca7" /><param name="allowScriptAccess" value="always" /></object><br/>';}else{embedCode='<embed src="'+swfUrl+'" quality="high" bgcolor="#869ca7" width="0" height="0" name="audiocaptcha" align="middle" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed> ';}
var cantHearCode=(Recaptcha.checkFlashVer()?'<br/><a class="recaptcha_audio_cant_hear_link" href="#" onclick="Recaptcha.playAgain(); return false;">'+RecaptchaStr.play_again+'</a>':'')+'<br/><a class="recaptcha_audio_cant_hear_link" target="_blank" href="'+httpwavurl+'">'+RecaptchaStr.cant_hear_this+'</a>';return embedCode+cantHearCode;},gethttpwavurl:function(){var $ST=RecaptchaState;if(Recaptcha.type=='audio'){var httpwavurl=$ST.server+"image?c="+$ST.challenge;if(httpwavurl.indexOf("https://")==0){httpwavurl="http://"+httpwavurl.substring(8);}
return httpwavurl;}
return"";},checkFlashVer:function(){var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");flashVer=tempArrayMajor[0];}}else if(isIE&&isWin&&!isOpera){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var flashVerStr=axo.GetVariable("$version");flashVer=flashVerStr.split(" ")[1].split(",")[0];}catch(e){}}
return flashVer>=9;}};var req=false;function loadXML(url,queryStr,operation){if(window.XMLHttpRequest){req=new XMLHttpRequest();if(req.overrideMimeType){req.overrideMimeType('text/xml');}}else if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!req){alert('Giving up :( Cannot create an XMLHTTP instance');return false;}
req.onreadystatechange=checkStatusFun;req.open("POST",url,true);req.setRequestHeader("Content-type","application/x-www-form-urlencoded");req.setRequestHeader("Content-length",queryStr.length);req.setRequestHeader("Connection","close");req.send(queryStr);}
function checkStatusFun(){if(req.readyState==4){if(req.status==200){if(window.ActiveXObject){response=req.responseXML.documentElement;}else{response=(new DOMParser()).parseFromString(req.responseText,'text/xml').documentElement;}
if((!response)){alert('There was a problem submitting your comment;\nyour browser does not appear to support this feature.');return false;}
objLoading=getElement("loading");if(objLoading){objLoading.style.display='none';}
if(response.getElementsByTagName('error')[0]){alert(response.getElementsByTagName('error')[0].firstChild.data);return false;}
if(response.getElementsByTagName('output')[0].firstChild){objAjaxOutput=getElement("ajaxOutput");objFormOutput=getElement("formOutput");if(objAjaxOutput){objAjaxOutput.innerHTML=stringToHypenForPHP(response.getElementsByTagName('output')[0].firstChild.data);}
if(objFormOutput){objFormOutput.innerHTML="";}
Recaptcha.destroy();}}else{alert("There was a problem retrieving the XML data:\n"+req.statusText);}}}
function getElement(obj,d){var i,x;if(!d)d=document;if(!(x=d[obj])&&d.all)
x=d.all[obj];for(i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][obj];for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=GetElement(obj,d.layers[i].document);if(!x&&document.getElementById)
x=document.getElementById(obj);return x;}
function stringToHypenForPHP(str){if(str.length>0){var str_check=str.indexOf(" =HYPEN=HYPEN=");if(str_check!=-1){str=str.replace(/=HYPEN=HYPEN=/g,"-");}}
return str;}
function popup(mylink,windowname)
{if(!window.focus)return true;var href;if(typeof(mylink)=='string')
href=mylink;else
href=mylink.href;window.open(href,windowname,'width=655,height=255,scrollbars=0');return false;}
function reloadPageWithNewForumComment()
{if(objForumId){forumId=objForumId.value;}
if(objLoading){objLoading.innerHTML='<font color="red">Loading Please wait.......</font>';}
if(objDisplayType){displayType=objDisplayType.value;}
if(objCommentsDisplayLimit){commentsDisplayLimit=objCommentsDisplayLimit.value;}
url="/custom_code/forum_comments_xml.php";queryStr="refPage="+escape(refPage)+"&stnBoxId="+escape(stnBoxId)+"&lClubId="+escape(listenerId)+"&lClubUserName="+escape(listenerClubUserName)+"&forumId="+escape(forumId)+"&stylePrefix="+escape(stylePrefix)+"&iframeForum="+escape(isIframe)+"&displayType="+escape(displayType)+"&commentsDisplayLimit="+escape(commentsDisplayLimit)+"&readMore="+escape(readMoreURl)+"&sid="+Math.random();if(objLoginRequired){if(objLoginRequired.value){queryStr+="&loginRequired="+objLoginRequired.value;}}
loadXML(url,queryStr,'updateXML');if(objForumText.childNodes.count>0){objForumText.firstChild.nodeValue='';}
objForumText.value='';objForumTitle.value='';objForumVerification.value="";}
function ltrim(str)
{var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(0))!=-1){var j=0,i=s.length;while(j<i&&whitespace.indexOf(s.charAt(j))!=-1)
j++;s=s.substring(j,i);}
return s;}
function rtrim(str)
{var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(s.length-1))!=-1){var i=s.length-1;while(i>=0&&whitespace.indexOf(s.charAt(i))!=-1)
i--;s=s.substring(0,i+1);}
return s;}
function trim(str)
{return rtrim(ltrim(str));}
var globalXMLHttpRequest;var globalDisplayId="";var globalNotation="";var globalMethod='get';function simpleVortalAjax(){this.xmlHttpRequestObj=undefined;this.notation='html';this.url=undefined;this.displayId=undefined;this.displayIdArray=new Array();this.callBackFunction=undefined;this.method='get';this.initialize=function(url,notation,displayId,method)
{this.xmlHttpRequestObj=this.getXmlHttpRequstObject();this.notation=notation;this.displayId=displayId;this.method=method;globalXMLHttpRequest=this.xmlHttpRequestObj;globalDisplayId=displayId;globalNotation=notation
globalMethod=method;this.url=url;try{this.stateChangeFunction.parentObj=this;this.xmlHttpRequestObj.parentObj=this;}catch(error){}
this.xmlHttpRequestObj.onreadystatechange=this.stateChangeFunction;this.sendRequest();}
this.getXmlHttpRequstObject=function()
{var xmlHttp;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Your browser does not support AJAX!");return false;}}}
return xmlHttp;}
this.sendRequest=function()
{if(globalMethod=='post'||this.method=='post')
{var params;var onlyUrl;try{onlyUrl=this.url.substr(0,this.url.indexOf("?"))
params=this.url.substr((this.url.indexOf("?")+1),this.url.length);params+="&sid="+Math.random();this.xmlHttpRequestObj.open("POST",onlyUrl,true);this.xmlHttpRequestObj.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.xmlHttpRequestObj.setRequestHeader("Content-length",params.length);this.xmlHttpRequestObj.setRequestHeader("Connection","close");this.xmlHttpRequestObj.send(params);}
catch(error)
{var msg="Please try again later!";document.getElementById('sort_order_messsage').innerHTML="<font color=red><strong><center>"+msg+"</center></strong></font>";return;}}
else
{this.url=this.url+"&sid="+Math.random();this.xmlHttpRequestObj.open("GET",this.url,true);this.xmlHttpRequestObj.send(null);}}
this.stateChangeFunction=function()
{var tempParentObj=this.parentObj;try
{if(tempParentObj.xmlHttpRequestObj.readyState==4)
{if(tempParentObj.callBackFunction!=undefined)
{eval('this.callBackFunction('+tempParentObj.xmlHttpRequestObj.responseText+')');}
else
{if(tempParentObj.notation=='html')
{if(tempParentObj.displayId!=undefined)
{document.getElementById(tempParentObj.displayId).innerHTML=tempParentObj.xmlHttpRequestObj.responseText;try{if(typeof(callBackFunctionAfterHTML)=="function")
{callBackFunctionAfterHTML(tempParentObj.displayId);}}catch(fne){}}}
else if(tempParentObj.notation=='json')
{callBackFunctionAfterAjax(tempParentObj.xmlHttpRequestObj.responseText);return false;}}}}
catch(error)
{if(globalXMLHttpRequest.readyState==4)
{if(globalNotation=='html')
{if(globalDisplayId!="")
{document.getElementById(globalDisplayId).innerHTML=globalXMLHttpRequest.responseText;try{if(typeof(callBackFunctionAfterHTML)=="function")
callBackFunctionAfterHTML(globalDisplayId);}catch(fne){}}}
else if(globalNotation=='json')
{callBackFunctionAfterAjax(globalXMLHttpRequest.responseText);}}
return false;}}}
function getXmlHttpObject(){try{return new XMLHttpRequest();}catch(e){try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){alert("Your browser does not support AJAX!");return false;}}}}
function getAjaxData(url,method,urlStr,callback,useEval,setObjVal,extraParam){if(url==""){alert("Url not found!");}
if(method==''){method="GET";url+='?'+urlStr+'&sid='+Math.random();}else if(method=="get"||method=="GET"){url+='?'+urlStr+'&sid='+Math.random();}else{urlStr+='&sid='+Math.random();}
xmlHttp=new getXmlHttpObject();xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){if(callback){if(extraParam){eval(callback+'(xmlHttp , extraParam)');}
else{eval(callback+'(xmlHttp)');}}else if(useEval){eval(xmlHttp.responseText)}else if(setObjVal){eval(setObjVal+'="'+xmlHttp.responseText+'"');}}}
xmlHttp.open(method,url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",urlStr.length);xmlHttp.setRequestHeader("Connection","close");xmlHttp.send(urlStr);}
function createRequestQueryStr(theForm)
{try{var reqStr="";lenElt=theForm.elements.length;for(i=0;i<lenElt;i++){isFormObject=false;ctrTagName=theForm.elements[i].tagName;ctrTagName=ctrTagName.toLowerCase();switch(ctrTagName){case"input":ctrType=theForm.elements[i].type;ctrType=ctrType.toLowerCase();switch(ctrType){case"text":case"hidden":case"file":reqStr+=theForm.elements[i].name+"="+encodeURIComponent(theForm.elements[i].value);isFormObject=true;break;case"checkbox":if(theForm.elements[i].checked){reqStr+=theForm.elements[i].name+"="+encodeURIComponent(theForm.elements[i].value);}else{reqStr+=theForm.elements[i].name+"=";}
isFormObject=true;break;case"radio":if(theForm.elements[i].checked){reqStr+=theForm.elements[i].name+"="+encodeURIComponent(theForm.elements[i].value);isFormObject=true;}
break;}
break;case"textarea":reqStr+=theForm.elements[i].name+"="+encodeURIComponent(theForm.elements[i].value);isFormObject=true;break;case"select":var sel=theForm.elements[i];reqStr+=sel.name+"="+encodeURIComponent(sel.options[sel.selectedIndex].value);isFormObject=true;break;}
if((isFormObject)&&((i+1)!=lenElt)){reqStr+="&";}}
return reqStr;}
catch(e){alert('createRequestQueryStr function failed :'+e);}}