/* stored at 1386337650 */ function bigShowHide(inputString,direction){ var pairs = inputString.split(","); var directions = direction.split(","); for (var i=0; i< document.styleSheets.length; S++){ var valid = false; if(null!=document.styleSheets[S].href && document.styleSheets[S].href.indexOf("http")>-1){ if(document.styleSheets[S].href.indexOf("walrusfm.com")>-1){ valid = 1; } } if(valid==1){ for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { if (document.styleSheets[S][cssRules][R].selectorText == theClass) { document.styleSheets[S][cssRules][R].style[element] = value; } } } } } function divSquash(){ var cssRules; if (document.all) { cssRules = 'rules'; }else if (document.getElementById) { cssRules = 'cssRules'; } for (var S = 0; S < document.styleSheets.length; S++){ var valid = false; if(null!=document.styleSheets[S].href && document.styleSheets[S].href.indexOf("http")>-1){ if(document.styleSheets[S].href.indexOf("walrusfm.com")>-1){ valid = 1; } } if(valid==1){ for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { var testme = document.styleSheets[S][cssRules][R].selectorText; var testHeight = document.styleSheets[S][cssRules][R].style['height']; if(testme.indexOf("#")>-1 && testHeight == "auto"){ element = testme.replace(/#/,""); if(obj=dge(element)){ if(obj.innerHTML==""){ obj.style.height="0px"; } } } } } } } function showCommentDivs(){ changecss('.commenting','display','block'); } function popup(url,height,width,startpop){ if(null==startpop){ var startpop = 'top=30,left=30,screenY=30,screenX=30,scrollbars=yes,toolbar=no,resizable=no'; } var ID = "_blank"; fullpop = 'width='+ width + ',height=' + height + ',' + startpop; window.open(url,ID,fullpop); } function swapDisplay_Button(hider) { if (null!=hider) { var el = document.all[hider] if (null!=el) el.style.display = ""==el.style.display ? "block" : "" } } function swapDisplayByButton(hider) { if (null!=hider) { var el = document.all[hider] if (null!=el) el.style.display = ""==el.style.display ? "block" : "" } } function loopSwapDisplay(hider,count){ for (var i = 0; i < count; i++) { swapDisplayByButton(hider + "_" + i); } } function tabshowhide(DivID,v){ if (document.all) { var obj = document.all[DivID] if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; } obj.display=v; }else{ var obj = document.getElementById(DivID) if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; } obj.display=v; } } function tabswap(groupname,count,selected){ for (var i = 0; i < count; i++) { selected==i? tabshowhide(groupname + "_" + i,'show') : tabshowhide(groupname + "_" + i,'hide') } } function swap_select(selectID){ var y=document.getElementById(selectID).value document.getElementById(selectID).value=y.toUpperCase() } function ToggleHide(DivID){ var obj = document.getElementById(DivID); obj.style.visibility = "hidden"; obj.style.display = ""; } function ShowDiv(DivID){ var obj = document.getElementById(DivID); obj.style.display = "block"; obj.style.visibility = "visible"; } function checkToggleState(DivID){ var obj = document.getElementById(DivID); if(obj.style.display=="block" || obj.style.visibility == "visible"){ obj.style.visibility = "hidden"; obj.style.display = ""; }else{ obj.style.display = "block"; obj.style.visibility = "visible"; } } function videoPlayerPopup(vidID,feedID,startclip,pa,dord){ var startpop = 'width=740,height=520,top=30,left=30,screenY=30,screenX=30,scrollbars=no,toolbar=no,resizable=no'; if(vidID==""){ var URL = "https://walrusfm.com/common/global_flash/player/player.php?feedID=" + feedID + "&dord=" + dord + pa; }else{ var URL = "https://walrusfm.com/common/global_flash/player/player.php?clipID="+ vidID + "&feedID=" + feedID + "&dord=" + dord + "&startclip=" + startclip + pa; } window.open(URL,vidID,startpop); } function formAddField(name,value,thistype,thisForm){ var thisForm = document.getElementById(thisForm); var newInput = document.createElement("input"); newInput.type = thistype; newInput.name = name; newInput.id = name; newInput.value = value; if(null!=thisForm){ thisForm.appendChild(newInput); } } function addField(name,value,thistype,thisForm){ var newInput = document.createElement("input"); newInput.type = thistype; newInput.name = name; newInput.value = value; thisForm.appendChild(newInput); } function postForm( formName,outputLocation,URL){ if(URL=="undefined"){ delete URL; } if(null==document.getElementById(outputLocation)){ return(setTimeout("postForm( '" + formName + "','" + outputLocation + "','" + URL + "');",100)); } theForm = document.getElementById( formName ); if (!theForm) return; query = ''; for( i=0; i < theForm.length; i++ ){ failed = 0; if (theForm.elements[ i ].type == "radio" && theForm.elements[ i ].checked!="1") { failed = 1; } if( failed==0){ if(window.plfmxPostMethod=="GET"){ theForm.elements[ i ].value = encodeURIComponent(theForm.elements[ i ].value); } query = query + theForm.elements[ i ].name +'='+ theForm.elements[ i ].value +'&'; } } if (window.XMLHttpRequest){ // If IE7, Mozilla, Safari, etc: Use native object var req = new XMLHttpRequest() }else { if (window.ActiveXObject){ // ...otherwise, use the ActiveX control for IE5.x and IE6 var req = new ActiveXObject("Microsoft.XMLHTTP"); } } req.onreadystatechange = function(){ if( req.readyState == 4 && document.getElementById(outputLocation)){ document.getElementById(outputLocation).innerHTML = req.responseText; __parseJs(document.getElementById(outputLocation)); } } if(null!=URL){ postTo = URL; }else{ postTo = window.location.href; } var method = "POST"; if(window.plfmxPostMethod=="GET"){ method = "GET"; postTo += "?" + query; window.plfmxPostMethod = null; }else{ } req.open( method, postTo, true ); if(method=="POST"){ req.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8' ); req.setRequestHeader( 'Content-Length', query.length ); try{ req.send( query ); }catch(e){ return(setTimeout("postForm( '" + formName + "','" + outputLocation + "','');",100)); } }else{ try{ req.send(null); }catch(e){ return(setTimeout("postForm( '" + formName + "','" + outputLocation + "','');",100)); } } } function __parseJs(obj) { var scriptTags = obj.getElementsByTagName('SCRIPT'); var string = ''; var jsCode = ''; for(var no=0;no=0){ jsCode = scriptTags[no].text + '\n'; }else{ jsCode = scriptTags[no].innerHTML; } if (!document.all) { scriptObj.innerHTML = jsCode; }else{ scriptObj.text = jsCode; } } document.getElementsByTagName("head")[0].appendChild(scriptObj); } } function storeMousePos() { window.Xclick = event.x; window.Yclick = event.y; } function storeMousePosFF(e) { window.Xclick = e.pageX; window.Yclick =e.pageY; } if (!document.all) { window.captureEvents(Event.CLICK); window.onclick=storeMousePosFF; } else { document.onclick=storeMousePos; } if (!document.all) { window.captureEvents(Event.MOUSEMOVE); window.onmousemove=storeMouseMoveFF; } else { document.onmousemove=storeMouseMove; } function showHideComments(blockID,state){ linkDiv = document.getElementById('comment_linkbar_' + blockID ); if(state=="show"){ linkDiv.innerHTML = "