/***********************************************
* Dynamic Ajax Content- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var loadedobjects=""
var rootdomain="http://"+window.location.hostname

function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
page_request.open('GET', url, true)
page_request.send(null)
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}
   http_request = new Array();

   function makeRequest(url, parameters, xId) {

      if (window.XMLHttpRequest) { // Mozilla, Safari,...

         http_request[xId] = new XMLHttpRequest();

         if (http_request[xId].overrideMimeType) {

            http_request[xId].overrideMimeType('text/html');

         }

      } else if (window.ActiveXObject) { // IE

         try {

            http_request[xId] = new ActiveXObject("Msxml2.XMLHTTP");

         } catch (e) {

            try {

               http_request[xId] = new ActiveXObject("Microsoft.XMLHTTP");

            } catch (e) {}

         }

      }

      if (!http_request[xId]) {

	 document.getElementById(xId).innerHTML = 'Result not available';

         return false;

      }

      http_request[xId].onreadystatechange = function() {



          if (http_request[xId].readyState == 4) {

                document.getElementById(xId).innerHTML = http_request[xId].responseText;

          }

        }



      http_request[xId].open('GET', url + parameters, true);

      http_request[xId].send(null);

   }
var MUSIC_TYPE='m';var VIDEO_TYPE='v';var ARCHIVE_TYPE='a';function handle_json_search_suggestions(p_response){getgvar('search_menu').handle_suggestions(p_response[0],p_response[1]);}
function search_menu_keypress_callback(p_event){getgvar('search_menu').handle_keypress(p_event);}
function search_menu_mouseclick_callback(p_event){getgvar('search_menu').handle_mouseclick(p_event);}
function search_menu(){this.results_type='';this.dirsearch_filetype=MUSIC_TYPE;this.dirsearch_filetypes=new Object();this.dirsearch_filetypes[MUSIC_TYPE]=new Array('mp3','ogg','wav','wma');this.dirsearch_filetypes[VIDEO_TYPE]=new Array('avi','mp4','mov','mpeg');this.dirsearch_filetypes[ARCHIVE_TYPE]=new Array('zip','gz','rar','bz2');this.filetypes_str=new Object();this.submit_baseurl='';this.studio_baseurl='/studio/';this.search_input_box_ele=null;this.search_suggestions_ele=null;this.search_suggestions_last_query='';this.suggestions_box_closed=false;this.selected_suggestion=-1;this.temp_suggestion_input='';this.search_filetypes_ele=null;this.search_type_dropdown_ele=null;this.filetypes_table_ele=new Object();this.filetypes_checkbox_eles=new Object();this.typeselect_listeners=new Array();this.init=function(p_inputbox_id,p_suggestions_id,p_filetypes_id,p_submit_baseurl,p_results_type,p_dirsearch_filetype,p_typeselect_listeners){this.search_input_box_ele=document.getElementById(p_inputbox_id);if(this.search_input_box_ele.value!='')
this.search_suggestions_last_query=this.search_input_box_ele.value;this.search_input_box_ele.focus();this.search_suggestions_ele=document.getElementById(p_suggestions_id);this.submit_baseurl=p_submit_baseurl;this.results_type=p_results_type;for(var type in this.dirsearch_filetypes){this.filetypes_str[type]=getgvar("initial_filetypes_str")[type];this.filetypes_checkbox_eles[type]=new Object();}
this.typeselect_listeners=p_typeselect_listeners;this.search_filetypes_ele=document.getElementById(p_filetypes_id);this.search_type_dropdown_ele=document.getElementById("type");this.build_filetypes_tables();this.typeselect(p_dirsearch_filetype);}
this.typeselect=function(p_type){if(this.search_filetypes_ele==null)
return;oldtype=this.dirsearch_filetype
this.dirsearch_filetype=p_type;this.remove_ele_children(this.search_filetypes_ele);this.search_filetypes_ele.appendChild(this.filetypes_table_ele[p_type]);for(var ext in this.filetypes_checkbox_eles[p_type])
this.init_checkbox(p_type,ext);for(var i=0;i<this.typeselect_listeners.length;i++)
this.typeselect_listeners[i].typeselect(oldtype,p_type);}
this.checkclick=function(p_type,p_ext){if(this.filetypes_checkbox_eles[p_type][p_ext].checked==true){this.filetypes_str[p_type]=this.filetypes_str[p_type].replace(p_ext+"|","");this.filetypes_str[p_type]=this.filetypes_str[p_type]+p_ext+"|";}
else
this.filetypes_str[p_type]=this.filetypes_str[p_type].replace(p_ext+"|","");}
this.init_checkbox=function(p_type,p_ext){if(this.filetypes_str[p_type].indexOf(p_ext)!=-1)
this.filetypes_checkbox_eles[p_type][p_ext].checked=true;else
this.filetypes_checkbox_eles[p_type][p_ext].checked=false;}
this.submit=function(){var querystr=this.strip_whitespace_groups(url_encode(this.search_input_box_ele.value));if(querystr==''){window.location.href=window.location.href;return;}
var newurl='';if(is_valid_youtube_watch_url(querystr))
newurl="http://www.tigow.com/searchSuggest.php?txtSearch="+get_youtube_videoid(querystr)+"&cmdSearch.x=0&cmdSearch.y=0&cmdSearch=search&dosearch=dosearch";else
newurl=this.submit_baseurl+escape(querystr)+this.construct_search_parameter_str();window.location.href=newurl;}
this.construct_search_parameter_str=function(p_querystr){var urlparams='';if(this.results_type!='vid')
urlparams+='&r='+this.results_type;if(this.dirsearch_filetype!=MUSIC_TYPE)
urlparams+='&t='+this.dirsearch_filetype;if(this.filetypes_str[this.dirsearch_filetype]!='mp3|ogg|wav|wma|')
urlparams+='&ft='+this.filetypes_str[this.dirsearch_filetype];if(urlparams.length>0)
urlparams='?'+urlparams.substr(1);return urlparams;}
this.get_search_suggestions=function(p_query){if(p_query==this.temp_suggestion_input)
return;else
this.temp_suggestion_input='';if(this.suggestions_box_closed==true||p_query==this.search_suggestions_last_query)
return;else if(p_query==''){this.delete_suggestions_box();this.search_suggestions_last_query=p_query;return;}
this.search_suggestions_last_query=p_query;var url='http://suggestqueries.google.com/complete/search?client=suggest&ds=yt'+'&jsonp=handle_json_search_suggestions'+'&q='+p_query;json_perform_request(url);}
this.handle_suggestions=function(p_query,p_suggestions){if(p_suggestions.length==0){this.delete_suggestions_box();return;}
this.search_suggestions_ele.style.display='block';if(navigator.userAgent.indexOf("Firefox")==-1)
{paginate.style.visibility="hidden";prepaginate.style.visibility="hidden";catsongs.style.visibility="hidden";googlediv.style.display="none";}
var xclose_ele=this.create_suggestions_close_div('','search-suggestions-xclose');if(this.search_suggestions_ele.childNodes.length==0)
this.search_suggestions_ele.appendChild(xclose_ele);else
this.search_suggestions_ele.replaceChild(xclose_ele,this.search_suggestions_ele.childNodes[0]);this.selected_suggestion=-1;for(var i in p_suggestions){this.add_suggestion_entry(p_suggestions[i][0],i);}
this.add_suggestion_entry(p_query,parseInt(i)+1,'search-suggestions-entry-invisible');var after_entries=parseInt(i)+2;var close_ele=this.create_suggestions_close_div('close','search-suggestions-close');if(after_entries+1>=this.search_suggestions_ele.childNodes.length)
this.search_suggestions_ele.appendChild(close_ele);else if(this.search_suggestions_ele.childNodes[after_entries+1].classname!='search-suggestions-close')
this.search_suggestions_ele.replaceChild(close_ele,this.search_suggestions_ele.childNodes[after_entries+1]);var numchildren=this.search_suggestions_ele.childNodes.length;for(var j=after_entries+2;j<numchildren;j++)
this.search_suggestions_ele.removeChild(this.search_suggestions_ele.childNodes[after_entries+2]);}
this.add_suggestion_entry=function(p_suggestion,p_index,p_classname){var newentry=this.create_suggestion_entry(p_suggestion,p_index,p_classname);var adjusted_index=parseInt(parseInt(p_index)+1);if(adjusted_index>=this.search_suggestions_ele.childNodes.length)
this.search_suggestions_ele.appendChild(newentry);else
this.search_suggestions_ele.replaceChild(newentry,this.search_suggestions_ele.childNodes[adjusted_index]);}
this.close_suggestions_box=function(){this.suggestions_box_closed=true;this.delete_suggestions_box();this.search_input_box_ele.focus();}
this.select_suggestion=function(p_index,p_replace_input){if(p_replace_input==undefined)
p_replace_input==false;if(p_index<0||p_index>=(this.search_suggestions_ele.childNodes.length-2))
return;var adjusted_index=parseInt(parseInt(p_index)+1);this.deselect_suggestion(this.selected_suggestion);this.selected_suggestion=p_index;css_addclass(this.search_suggestions_ele.childNodes[adjusted_index],'search-suggestions-entry-selected');if(p_replace_input){var text=this.search_suggestions_ele.childNodes[adjusted_index].childNodes[0].data;this.search_suggestions_last_query=text;this.temp_suggestion_input=text;this.search_input_box_ele.value=text;}}
this.deselect_suggestion=function(p_index){var adjusted_index=parseInt(parseInt(p_index)+1);css_removeclass(this.search_suggestions_ele.childNodes[adjusted_index],'search-suggestions-entry-selected');}
this.select_suggestion_offset=function(p_offset){var newindex=parseInt(this.selected_suggestion)+parseInt(p_offset);var numentries=this.search_suggestions_ele.childNodes.length-2;if(this.selected_suggestion<0)
newindex=0;else if(newindex>=numentries)
newindex=newindex%numentries;else if(newindex<0)
newindex=(numentries)-((-1*newindex)%(numentries));this.select_suggestion(newindex,true);}
this.delete_suggestions_box=function(){this.remove_ele_children(this.search_suggestions_ele);this.search_suggestions_ele.style.display='none';if(navigator.userAgent.indexOf("Firefox")==-1)
{paginate.style.visibility="visible";prepaginate.style.visibility="visible";catsongs.style.visibility="visible";googlediv.style.display="block";}
this.temp_suggestion_input='';this.selected_suggestion=-1;}
this.reload_suggestions_box=function(){this.search_suggestions_last_query='';this.suggestions_box_closed=false;this.get_search_suggestions(this.search_input_box_ele.value);}
this.submit_suggestion=function(p_text){if(p_text==undefined||p_text==''&&this.selected_suggestion>0)
p_text=this.search_suggestions_ele[this.selected_suggestion+1];this.search_input_box_ele.value=p_text;this.search_input_box_ele.focus();this.delete_suggestions_box();this.submit();}
this.handle_keypress=function(p_event){var keynum=-1;if(window.event)
keynum=window.event.keyCode;else if(p_event.which)
keynum=p_event.which;if(keynum==40){if(this.search_suggestions_ele.childNodes.length>2)
this.select_suggestion_offset(1);else if(this.search_suggestions_ele.childNodes.length==0)
this.reload_suggestions_box();}
else if(keynum==38){if(this.search_suggestions_ele.childNodes.length>2)
this.select_suggestion_offset(-1);else if(this.search_suggestions_ele.childNodes.length==0)
this.reload_suggestions_box();}
else if(keynum==27){this.search_input_box_ele.value=this.search_suggestions_ele.childNodes[this.search_suggestions_ele.childNodes.length-2].childNodes[0].data;this.delete_suggestions_box();this.search_input_box_ele.focus();}}
this.handle_mouseclick=function(p_event){var target;if(!p_event)
p_event=window.event;if(p_event.target)
target=p_event.target;else if(p_event.srcElement)
target=p_event.srcElement;if(target.nodeType==3)
target=target.parentNode;if((target.parentNode&&target.parentNode==this.search_suggestions_ele)||(target.parentNode&&target.parentNode.parentNode&&target.parentNode.parentNode==this.search_suggestions_ele))
return;else
this.delete_suggestions_box();}
this.build_filetypes_tables=function(){for(var type in this.dirsearch_filetypes)
this.build_checkbox_table(type,this.dirsearch_filetypes[type]);}
this.create_suggestion_entry=function(p_suggestion,p_index,p_classname){if(p_suggestion.length>52)
p_suggestion=p_suggestion.substring(0,49)+'...';var div_0=document.createElement('div');div_0.onclick=function(){getgvar('search_menu').submit_suggestion(p_suggestion);};div_0.onmouseover=function(){getgvar('search_menu').select_suggestion(p_index,false);};div_0.onmouseout=function(){getgvar('search_menu').deselect_suggestion(p_index);};div_0.className='search-suggestions-entry';if(p_classname!=undefined&&p_classname!='')
div_0.className+=' '+p_classname;div_0.appendChild(document.createTextNode(p_suggestion));return div_0;}
this.create_suggestions_close_div=function(p_text,p_classname){var div_0=document.createElement('div');div_0.className=p_classname;var a_0=document.createElement('a');a_0.onclick=function(){getgvar('search_menu').close_suggestions_box()};a_0.appendChild(document.createTextNode(p_text));div_0.appendChild(a_0);return div_0;}
this.ele_addtd=function(p_ele){var td_ele=document.createElement("td");td_ele.setAttribute("class","option_check");td_ele.appendChild(p_ele);return td_ele;}
this.ele_checkbox=function(p_type,p_ext){var input_ele=document.createElement("input");input_ele.setAttribute('class',"hand-checkbox");input_ele.type="checkbox";input_ele.onclick=function(){getgvar('search_menu').checkclick(p_type,p_ext);};return input_ele;}
this.add_checkbox=function(p_parent_ele,p_type,p_ext){var checkbox=this.ele_checkbox(p_type,p_ext);this.filetypes_checkbox_eles[p_type][p_ext]=checkbox;p_parent_ele.appendChild(this.ele_addtd(checkbox));p_parent_ele.appendChild(this.ele_tdtext(p_ext));}
this.ele_tdsubspacer=function(){var td_ele=document.createElement("td");td_ele.setAttribute("class","sub_spacer");return td_ele;}
this.ele_tdtext=function(p_text){var td_ele=document.createElement("td");td_ele.className="filetype-text";var text_ele=document.createTextNode(p_text);td_ele.appendChild(text_ele);return td_ele;}
this.build_checkbox_table=function(p_type,p_extensions){this.filetypes_table_ele[p_type]=document.createElement("table");this.filetypes_table_ele[p_type].setAttribute("class","options");var tbody=document.createElement("tbody");var row=document.createElement("tr");for(var i=0;i<p_extensions.length;i++)
this.add_checkbox(row,p_type,p_extensions[i])
tbody.appendChild(row);this.filetypes_table_ele[p_type].appendChild(tbody);}
this.strip_whitespace_groups=function(p_str){retstr="";p_str=p_str.replace(new RegExp(/^\s+/),"");p_str=p_str.replace(new RegExp(/\s+$/),"");var in_whitespace=false;for(var i=0;i<p_str.length;i++){if(p_str.charAt(i)==' '&&in_whitespace==false){in_whitespace=true;retstr=retstr+p_str.charAt(i);}
else if(p_str.charAt(i)!=' '){in_whitespace=false;retstr=retstr+p_str.charAt(i);}}
return retstr;}
this.remove_ele_children=function(p_ele){if(p_ele==undefined||p_ele==null)
return;while(p_ele.hasChildNodes())
p_ele.removeChild(p_ele.firstChild);}}
//globe_state
var g_vars=new Object();var g_eles=new Object();function setgvar(p_var,p_val){g_vars[p_var]=p_val;}
function getgvar(p_var){return g_vars[p_var];}
function setgele(p_var,p_val){g_eles[p_var]=p_val;}
function getgele(p_var){return g_eles[p_var];}
function css_hasclass(ele,cls){if(ele==undefined||ele==null)
return;return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));}
function css_addclass(ele,cls){if(ele==undefined||ele==null)
return;if(!this.css_hasclass(ele,cls))
ele.className+=" "+cls;}
function css_removeclass(ele,cls){if(ele==undefined||ele==null)
return;if(css_hasclass(ele,cls)){var reg=new RegExp('(\\s|^)'+cls+'(\\s|$)');ele.className=ele.className.replace(reg,' ');}}
//json
function JSONScriptRequest(fullUrl){this.fullUrl=fullUrl;this.noCacheIE='&ts='+(new Date()).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId='JscriptId'+JSONScriptRequest.scriptCounter++;}
JSONScriptRequest.scriptCounter=1;JSONScriptRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");this.fullUrl=url_encode(this.fullUrl);this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("charset","utf-8");this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);this.scriptObj.setAttribute("id",this.scriptId);}
JSONScriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj);}
JSONScriptRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj);}
function json_perform_request(p_url){var req=new JSONScriptRequest(p_url);req.buildScriptTag();req.addScriptTag();}
//url
function is_valid_base64(p_str,p_length){if(arguments.length!=2)
p_length=-1;var urlsafe_base64_str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_";if(p_length!=-1&&p_str.length!=p_length)
return false;for(var i=0;i<p_str.length;i++)
if(urlsafe_base64_str.indexOf(p_str.charAt(i))==-1)
return false;return true;}
function get_urlparamobj(p_url){var urlparams=new Object;var urlhalfs=p_url.split('#');if(urlhalfs.length>=2)
p_url=urlhalfs[0];urlhalfs=p_url.split('?');if(urlhalfs.length<2)
return new Object;var urlargs=urlhalfs[1].split('&')
for(var i=0;i<urlargs.length;i++){var urlarg_pair=urlargs[i].split('=');if(urlarg_pair.length!=2)
continue;urlparams[urlarg_pair[0]]=urlarg_pair[1];}
return urlparams;}
function url_construct_paramstr(paramobj){var paramstr='';for(var key in paramobj)
paramstr+='&'+key+'='+paramobj[key];if(paramstr.length>0)
paramstr='?'+paramstr.substring(1);return paramstr;}
function get_url_param(p_name){p_name=p_name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+p_name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)
return"";else
return results[1];}
function get_url_params(){var params=new Array();var regex=/[\?&]([^=]+)=/g;while((results=regex.exec(window.location.href))!=null)
params.push(results[1]);return params;}
function url_setparam(url,name,val){var mainurl='';var siteanchor='';var urlhalfs=url.split("#");if(urlhalfs.length>=2){url=urlhalfs[0];for(var i=1;i<urlhalfs.length;i++)
siteanchor+=urlhalfs[i];}
urlhalfs=url.split('?');if(urlhalfs.length>0)
mainurl=urlhalfs[0];params=get_urlparamobj(url);params[name]=val;paramstr=url_construct_paramstr(params);return mainurl+paramstr+siteanchor;}
function protocol_end_pos(p_str){var protocol_loc;protocol_loc=p_str.indexOf(":// ");if(protocol_loc==-1){return 0;}
else{return protocol_loc+2;}}
function highest_order_url_dir(p_str){var loc;loc=p_str.lastIndexOf("/");if(loc==-1||loc==protocol_end_pos(p_str)){return p_str;}
return p_str.substring(0,loc+1);}
function is_valid_html_dir_title(p_str){if((p_str.length<10)||(p_str.substring(0,10)!="Index of /"&&p_str.substring(0,11)!="Index of ./"&&p_str.substring(0,12)!="Index of ../")||(p_str.length>=19&&p_str.substring(0,19)=="Index of /resources")||(p_str.length>=20&&p_str.substring(0,20)=="Index of ./resources")||(p_str.length>=21&&p_str.substring(0,21)=="Index of ../resources")){return false;}
return true;}
function url_encode(p_str){var VALIDCHARS="0123456789"+"abcdefghijklmnopqrstuvwxyz"+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"+":/&?="+"-_.!~*'()";var HEXADECIMAL="0123456789ABCDEF";var retstr="";for(var i=0;i<p_str.length;i++){var thechar=p_str.charAt(i);if(thechar==" "){retstr+="%20";}
else if(VALIDCHARS.indexOf(thechar)!=-1){retstr+=thechar;}
else{var code=thechar.charCodeAt(0);if(code<255){retstr+="%"+
HEXADECIMAL.charAt((code>>4)&0xF)+
HEXADECIMAL.charAt(code&0xF);}
else{retstr+=" ";}}}
return retstr;}
//end
initial_filetypes_str=new Object();initial_filetypes_str["m"]="mp3|ogg|wav|wma|";initial_filetypes_str["v"]="avi|mp4|mov|mpeg|wmv|";initial_filetypes_str["a"]="zip|gz|rar|bz2|";setgvar("initial_filetypes_str",initial_filetypes_str);setgvar("search_menu",new search_menu());document.onkeydown=search_menu_keypress_callback;document.onclick=search_menu_mouseclick_callback;

//stylechange
function setactivestylesheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style")!= -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("title") == title) a.disabled = false;
}
}
}

function getActiveStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style")!= -1 && a.getAttribute("title") &&!a.disabled) return a.getAttribute("title");
}
return null;
}

function getPreferredStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style")!= -1
&& a.getAttribute("rel").indexOf("alt") == -1
&& a.getAttribute("title")
) return a.getAttribute("title");
}
return null;
}

function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}

window.onload = function(e) {
var cookie = readCookie("style");
var title = cookie? cookie : getPreferredStyleSheet();
setactivestylesheet(title);
}

window.onunload = function(e) {
var title = getActiveStyleSheet();
createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie? cookie : getPreferredStyleSheet();
setactivestylesheet(title);

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
