IEFix=function(){var cssRule;var newSelector;for(var i=0;i<document.styleSheets.length;i++){for(var x=0;x<document.styleSheets[i].rules.length;x++){cssRule=document.styleSheets[i].rules[x];if(cssRule.selectorText.indexOf("LI:hover")!=-1){newSelector=cssRule.selectorText.replace(/LI:hover/gi,"LI.iehover");document.styleSheets[i].addRule(newSelector,cssRule.style.cssText);}}}
var getElm=document.getElementById("nav").getElementsByTagName("LI");for(var i=0;i<getElm.length;i++){getElm[i].onmouseover=function(){this.className+=" iehover";}
getElm[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" iehover\\b"),"");}}}
if(window.attachEvent)window.attachEvent("onload",IEFix);function showHideFadeDiv(divID){if(document.getElementById(divID).style.display=='none'){Effect.Appear(divID);}
else{Effect.Fade(divID);}}
function showHideBlindDiv(divID){if(document.getElementById(divID).style.display=='none'){Effect.BlindDown(divID);}
else{Effect.BlindUp(divID);}}
function blindUpDiv(divID){Effect.BlindUp(divID);}
function blindDownDiv(divID){Effect.BlindDown(divID);}
function isInteger(s){var i;for(i=0;i<s.length;i++){var c=s.charAt(i);if(((c<"0")||(c>"9")))
return false;}
return true;}
function removeAllOptions(selectbox){var i;for(i=selectbox.options.length-1;i>=0;i--){selectbox.remove(i);}}
function addOption(selectbox,value,text){var optn=document.createElement("option");optn.text=text;optn.value=value;selectbox.options.add(optn);}
function showHideSearchFieldDiv(divID){if(document.getElementById(divID).style.display=='none'){Effect.BlindDown(divID,{afterFinish:function changeDivText(obj){document.getElementById('showSearchFieldText').innerHTML='<b>Hide Search Field</b>';}});}
else{Effect.BlindUp(divID,{afterFinish:function changeDivText(obj){document.getElementById('showSearchFieldText').innerHTML='<b>Show Search Field</b>';}});}}
function confirmDelete(id){var agree=confirm("Are you sure that you want to remove selected quote from your favorites?");if(agree)
removeQuoteFromFavP(id);else
return false;}
function confirmDeleteTitle(id){var agree=confirm("Are you sure that you want to remove selected title from your favorites?");if(agree)
removeTitleFromFavP(id);else
return false;}
function confirmDeleteDI(id){var agree=confirm("Are you sure that you want to remove selected item?\n\nWarning: This action cannot be undone!");if(agree)
removeDeniedItemsP(id);else
return false;}
function rateTextDiv(text,type){if(type==1){document.getElementById('ratingPoints').style.display='block';document.getElementById('ratingStatus').style.display='none';document.getElementById('ratingPoints').innerHTML=text;}
else{document.getElementById('ratingPoints').style.display='none';document.getElementById('ratingStatus').style.display='block';}}
function disableMe(id){document.getElementById(id).setAttribute("onclick","void(0);");}
function showPostPreview(sourceID,destID){var sourceValue=document.getElementById(sourceID).value.replace(/[\n]/g,"!!--fDDD--!!");var dest=document.getElementById(destID);if(sourceValue.length>0){dest.style.display='block';}
else{dest.style.display='none';}
search=[/\[b\](.*?)\[\/b\]/ig,/\[i\](.*?)\[\/i\]/ig,/\[s\](.*?)\[\/s\]/ig,/\[sub\](.*?)\[\/sub\]/ig,/\[sup\](.*?)\[\/sup\]/ig,/\[quote\](.*?)\[\/quote\]/ig,/\[url=([\w]+?:\/\/[^\\"\n\r\t<]*?)\](.*?)\[\/url\]/ig
		];

	replace = [
			"<b>$1</b>",
			"<em>$1</em>",
			"<del>$1</del>",
			"<sub>$1</sub>",
			"<sup>$1</sup>",
			"<blockquote>$1</blockquote>",
			"<a href=\"$1\">$2</a>"];for(i=search.length-1;i>=0;i--){sourceValue=sourceValue.replace(search[i],replace[i]);}
dest.innerHTML=sourceValue.replace(/!!--fDDD--!!/g,"<br />");}
function openReply(div){var showDiv=document.getElementById('replyID'+div);var showText=document.getElementById('showText'+div);var warningText=document.getElementById('thresholdWarning'+div);Effect.BlindUp(warningText,{duration:0.3});Effect.BlindDown(showDiv,{duration:0.3});showText.innerHTML='hide reply';}
function shDenyNote(divID){var showText=document.getElementById('sdr'+divID);var showNote=document.getElementById('sdrn'+divID);if(showNote.style.display=='none'){Effect.BlindDown(showNote,{duration:0.3,afterFinish:function sfl(obj){showText.innerHTML='<a onclick="shDenyNote(\''+divID+'\');" class="p_showDenyReasonU">Hide Deny Reason</a>';}});}
else{Effect.BlindUp(showNote,{duration:0.3,afterFinish:function sfl(obj){showText.innerHTML='<a onclick="shDenyNote(\''+divID+'\');" class="p_showDenyReasonD">Show Deny Reason</a>';}});}}
function jswUpdate(){var theCode=document.getElementById('jswCode');theCodeStr='';theCodeStr='<script src="http://www.themoviequotes.com/widgets/javascript';theCodeStr+='?n='+document.getElementById('jswNumber').value;theCodeStr+='&amp;l='+document.getElementById('jswLines').value;theCodeStr+='&amp;g='+document.getElementById('t1General').value;theCodeStr+='" type="text/javascript"></script>';theCode.value=theCodeStr;}