
$(function(){
$("#hack").hover(function(){
var i=Math.floor(Math.random()*$(".bflink").length);
$(".bflink").eq(i).fadeIn("fast");
$("#hack").attr("href",$(".bflink").eq(i).find("a").attr("href"));
},function(){
$(".bflink").fadeOut("slow");
});
});
$(function(){
$("#hack").hover(function(){
var i=Math.floor(Math.random()*$(".texture").length);
$(".texture").eq(i).fadeIn("fast");
$("#hack").attr("href",$(".texture").eq(i).find("a").attr("href"));
},function(){
$(".texture").fadeOut("slow");
});
});
$(function(){
$("#hack").hover(function(){
var i=Math.floor(Math.random()*$(".animation").length);
$(".animation").eq(i).fadeIn("fast");
$("#hack").attr("href",$(".animation").eq(i).find("a").attr("href"));
},function(){
$(".animation").fadeOut("slow");
});
});
$(function(){
$("#hack").mouseout(function(){
var i=Math.floor(Math.random()*$(".bflink2").length);
$(".bflink2").eq(i).fadeIn("fast");
$("#hack").attr("href",$(".bflink2").eq(i).find("a").attr("href"));
},function(){
$(".bflink2").fadeOut("slow");
});
});
/*Style Sheet Switcher v1.1 &copy;Dynamic Drive DHTML Visit http://www.dynamicdrive.com for this script and more*/
var manual_or_random="manual";
var randomsetting="3 days";
function getCookie(_5){
var re=new RegExp(_5+"=[^;]+","i");
if(document.cookie.match(re)){
return document.cookie.match(re)[0].split("=")[1];
}
return null;
}
function setCookie(_7,_8,_9){
var _a=new Date();
var _b=(typeof _9!="undefined")?_a.setDate(_a.getDate()+parseInt(_9)):_a.setDate(_a.getDate()-5);
document.cookie=_7+"="+_8+"; expires="+_a.toGMTString()+"; path=/";
}
function deleteCookie(_c){
setCookie(_c,"moot");
}
function setStylesheet(_d,_e){
var i,_10,_11=[""];
for(i=0;(_10=document.getElementsByTagName("link")[i]);i++){
if(_10.getAttribute("rel").toLowerCase()=="alternate stylesheet"&&_10.getAttribute("title")){
_10.disabled=true;
_11.push(_10);
if(_10.getAttribute("title")==_d){
_10.disabled=false;
}
}
}
if(typeof _e!="undefined"){
var _12=Math.floor(Math.random()*_11.length);
_11[_12].disabled=false;
}
return (typeof _e!="undefined"&&_11[_12]!="")?_11[_12].getAttribute("title"):"";
}
function chooseStyle(_13,_14){
if(document.getElementById){
setStylesheet(_13);
setCookie("mysheet",_13,_14);
}
}
function indicateSelected(_15){
if(selectedtitle!=null&&(_15.type==undefined||_15.type=="select-one")){
var _15=(_15.type=="select-one")?_15.options:_15;
for(var i=0;i<_15.length;i++){
if(_15[i].value==selectedtitle){
if(_15[i].tagName=="OPTION"){
_15[i].selected=true;
}else{
_15[i].checked=true;
}
break;
}
}
}
}
if(manual_or_random=="manual"){
var selectedtitle=getCookie("mysheet");
if(document.getElementById&&selectedtitle!=null){
setStylesheet(selectedtitle);
}
}else{
if(manual_or_random=="random"){
if(randomsetting=="eachtime"){
setStylesheet("","random");
}else{
if(randomsetting=="sessiononly"){
if(getCookie("mysheet_s")==null){
document.cookie="mysheet_s="+setStylesheet("","random")+"; path=/";
}else{
setStylesheet(getCookie("mysheet_s"));
}
}else{
if(randomsetting.search(/^[1-9]+ days/i)!=-1){
if(getCookie("mysheet_r")==null||parseInt(getCookie("mysheet_r_days"))!=parseInt(randomsetting)){
setCookie("mysheet_r",setStylesheet("","random"),parseInt(randomsetting));
setCookie("mysheet_r_days",randomsetting,parseInt(randomsetting));
}else{
setStylesheet(getCookie("mysheet_r"));
}
}
}
}
}
}
