//<!-- This Code Written By SpottedOwlStew  [(|)^v^(|)]-->

function EvalSound(soundobj) {
  var thissound = eval("document."+soundobj);
  thissound.Play();
}

function SharEPiC() {
$('#moDaLImaGe').click();
}

function SigNUpHiDe() {
setTimeout('$("#SigNBook").fadeOut("slow")', 7000);
}

function PersBg() {
setTimeout('$("a#YouR_BG").hide()', 1500);
setTimeout('$("UL.Main_Styles LI:first-child").hide()', 1000);
   $("link[rel=stylesheet]").attr({href : "CsS/StYLe.css.php?BorDeR=404040&BacKGr=../peRsBaKgrounD/images.php"
 });
}

function FaVBg() {
   $("link[rel=stylesheet]").attr({href : "CsS/StYLe.css.php?BacKGr=../STyLeImaGes/LightSOfEarth.jpg&BorDeR=AAAAAA"
 });
}

function DeFBg() {
   $("link[rel=stylesheet]").attr({href : "CsS/StYLe.css.php?BacKGr=../images/blackStone.gif&BorDeR=333333"
 });
}

function modalGallery() {
   if (window.showModalDialog) {
   window.showModalDialog("GaLLerY/","OlyOasis",
   "dialogHeight: 660px; dialogWidth: 900px; dialogLeft : 50px;  dialogtop : 100px");
   } else {
   window.open('GaLLerY/','OlyOasis',
   'height=660,width=800,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no,modal=yes');
  }
}
//<!-- Style functions -->
$(document).ready(function() {
   $("#TipBoX_10 li a").click(function() {
      $("link").attr("href",$(this).attr('rel'));
      return false;
   });
});

$(document).ready(function() {
   $("a.SlideR_StYLSeL").click(function() {
      $("link").attr("href",$(this).attr('rel'));
      return false;
   });
});

$(document).ready(function() {
$("#Site_Styles").toggle(function() {
$("#Main_Styles").show("slow");
$("#PageleT_SheLL").hide("slow");
$('#Site_Styles').text('Close Site Styles');
}, function() {
$('#Site_Styles').text('Custom Site Styles');
$("#PageleT_SheLL").show("slow");
$("#Main_Styles").hide("slow");
});
});

$(document).ready(function() {
$("#About_SeLecT").bind("mouseleave",function(){
$("#About").trigger('click');
   });
});

$(document).ready(function() {
$("#TexTuRe_SeLecT").bind("mouseleave",function(){
$("#TexTuRe").trigger('click');
   });
});

$(document).ready(function() {
$("#ViDeO_LisT_SeLecT").bind("mouseleave",function(){
$("#ViDeO_LisT").trigger('click');
   });
});

function ThumBViD(id,down,over,wide,high,url) {
$(id).animate({ width: "0px", height: "0px" })
ThumBMoviEs.location.href = 'BlanKThumB.htm';
$(id).stop();
   $(id).animate({"left": over, "top": down});
   var speed = 300;
   speed *= $(id).length;
 $(id).show("slow");
 $(id).animate({ width: wide, height: high }, speed, "linear");
   ThumBMoviEs.location.href = url;
 }
function ThumBViD_hide(id) {
ThumBMoviEs.location.href = 'BlanKThumB.htm';
$(id).animate({ width: "0px", height: "0px" })
$('#ThumBViDs').animate({"left": -2000, "top": -2000});
$(id).fadeOut(500);
}

$(document).ready(function() {
$("#About").toggle(function() {
$("#About_SeLecT").show("slow");
}, function() {
$("#About_SeLecT").hide("slow");
});
});

$(document).ready(function() {
$("#TexTuRe").toggle(function() {
$("#TexTuRe_SeLecT").show("slow");
}, function() {
$("#TexTuRe_SeLecT").hide("slow");
});
});

$(document).ready(function() {
$("#ViDeO_LisT").toggle(function() {
$("#ViDeO_LisT_SeLecT").show("slow");
}, function() {
$("#ViDeO_LisT_SeLecT").hide("slow");
});
});

$(document).ready(function() {
$("#BoXToGGLe, #BliPNotE").hover(function() {
$("#BoXToGGLe").fadeTo(500,1.0);
}, function() {
$("#BoXToGGLe").fadeTo(500,0.75);
});
});

$(document).ready(function() {
$("#BoXToGGLe").toggle(function() {
this.src = this.src.replace("_on","_off");
$('#BoXeDFloateRs').animate({"left": '120%', "top": '-120%'});
$('#FloateRsBoX').hide(600)
}, function() {
this.src = this.src.replace("_off","_on");
$('#BoXeDFloateRs').animate({"left": '78.5%', "top": '16%'});
$('#FloateRsBoX').show(600)
});
});

$(document).ready(function() {
$("#MaiNToGGLe").toggle(function() {
setTimeout('$("#SplasHBoX").fadeOut("slow")', 100);
this.src = this.src.replace("_on","_off");
$("#MaiNToGGLe").fadeTo(1000,0.3)
}, function() {
setTimeout('$("#SplasHBoX").fadeIn("slow")', 100);
this.src = this.src.replace("_off","_on");
$("#MaiNToGGLe").fadeTo(1000,1.0)
});
});

$(document).ready(function() {
$("#MaiNToGGLe").hover(function() {
$("#MaiNToGGLe").fadeTo(500,1.0);
}, function() {
$("#MaiNToGGLe").fadeTo(500,0.75);
});
});

$(document).ready(function() {
$("#PayPal").hover(function() {
$("#PayPal").fadeTo(500,1.0);
}, function() {
$("#PayPal").fadeTo(500,0.40);
});
});

$(document).ready(function(){
$("li.MaiNMeNuLinK").click(function(){
$("li.MaiNMeNuLinK").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#5AFF00'});
});
});

$(document).ready(function() {
$("#BliPNotE").hover(function() {
$(this).addClass('BliPNotE_hover');
}, function() {
$(this).removeClass('BliPNotE_hover');
   });
});

$(document).ready(function() {
$("#MenuContent a.Main_StYLSeL,.CaT_TiTle").hover(function() {
$(this).addClass('Main_StYLSeL_hover');
}, function() {
$(this).removeClass('Main_StYLSeL_hover');
   });
});

$(document).ready(function() {
$("a.Main_StYLSeL").click(function(){
setTimeout('$("a.Main_StYLSeL").css({color:"#D4042C"})', 2000);
setTimeout('$("a.Main_StYLSeL").css({color:"#AAAAAA"})', 8000);
setTimeout('$("a.Main_StYLSeL").addClass("Main_StYLSeL_hover")', 10000);
});
});

$(document).ready(function() {
$("a.MeNuLinK").hover(function() {
$(this).addClass('MeNuLinK_hover');
}, function() {
$(this).removeClass('MeNuLinK_hover');
   });
});

$(document).ready(function(){
$("li.About_DoT").click(function(){
$("li.About_DoT").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#5AFF00'});
});
});

$(document).ready(function(){
$("li a.About_LinK").bind("mouseenter",function(){
$("li a.About_LinK").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#5AFF00'});
});
});

$(document).ready(function(){
$("li a.About_LinK").bind("mouseleave",function(){
$("li a.About_LinK").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#AAAAAA'});
});
});

$(document).ready(function(){
$("li.ViDeO_LisT_DoT").click(function(){
$("li.ViDeO_LisT_DoT").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#5AFF00'});
});
});

$(document).ready(function(){
$("li a.ViDeO_LisT_LinK").bind("mouseenter",function(){
$("li a.ViDeO_LisT_LinK").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#5AFF00'});
});
});

$(document).ready(function(){
$("li a.ViDeO_LisT_LinK").bind("mouseleave",function(){
$("li a.ViDeO_LisT_LinK").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#AAAAAA'});
});
});

$(document).ready(function(){
$("li.AuDioMeNu").click(function(){
$("li.AuDioMeNu").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#5AFF00'});
});
});

$(document).ready(function(){
$("li a.AuDioLinK").bind("mouseenter",function(){
$("li a.AuDioLinK").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#FFFFFF'});
});
});

$(document).ready(function(){
$("li a.AuDioLinK").bind("mouseleave",function(){
$("li a.AuDioLinK").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#AAAAAA'});
});
});

$(document).ready(function(){
$("li.DoT a").click(function(){
$("li.DoT a").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#06B57A'});
});
});

$(document).ready(function(){
$("#TipBoX_10 li").bind("mouseenter",function(){
$("#TipBoX_10 li").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#FFFFFF'});
});
});

$(document).ready(function(){
$("#TipBoX_10 li").bind("mouseleave",function(){
$("#TipBoX_10 li").not(this).css({color:'#AAAAAA'});
$(this).css({color:'#AAAAAA'});
});
});

$(document).ready(function() {
         $('#FloateRsBoX').hover(function(){
       $('#BoXCoveR').fadeTo(500,0.1);
       setTimeout('$(this).stop()', 600);
       },function(){
       $('#BoXCoveR').fadeTo(500,1.0);
       setTimeout('$(this).stop()', 600);
       });
      });

$(document).ready(function() {
         $('#MuSicLisT').click (function(){
          $(this).stop().animate({ 'top': '0px' }, 600);
       });
         $('#MuSicLisT').bind("mouseenter",function(){
          $(this).stop().animate({ 'top': '-178px' }, 600);
       });
         $('#MuSicLisT').bind("mouseleave",function(){
          $(this).stop().animate({ 'top': '-185px' }, 600);
       });
      });

$(document).ready(function() {
         $('#FooTeR').click (function(){
          $(this).animate({ 'bottom': '-220px' }, 800);
       });
         $('#FooTBuTT').bind("mouseenter",function(){
          $('#FooTeR').stop().animate({ 'bottom': '-443px' }, 300);
       });
         $('#FooTeR').bind("mouseleave",function(){
          $(this).stop().animate({ 'bottom': '-448px' }, 300);
       });
     });

$(document).ready(function() {
         $('#SigN_SheLL').click (function(){
          $(this).animate({ 'top': '-20px' }, 800);
       });
         $('#SigN_SheLL').bind("mouseenter",function(){
          $('#SigN_SheLL').stop().animate({ 'top': '-55px' }, 300);
          $(this).css("background-image", "url(images/NavTaBs/SigNuPBaK_on.png)");
       });
         $('#SigN_SheLL').bind("mouseleave",function(){
          $(this).stop().animate({ 'top': '-60px' }, 300);
          $(this).css("background-image", "url(images/NavTaBs/SigNuPBaK_off.png)");
       });
     });

$(document).ready(function() {
         $('.AgReeMenT').click (function(){
          $(this).animate({ 'left': '-20px' }, 800);
       });
         $('.AgReeMenT').bind("mouseenter",function(){
          $(this).stop().animate({ 'left': '-20px' }, 300);
          $(this).css("background-image", "url(images/AgReeBaK_on.png)");
       });
         $('.AgReeMenT').bind("mouseleave",function(){
          $(this).stop().animate({ 'left': '-240px' }, 300);
          $(this).css("background-image", "url(images/AgReeBaK_off.png)");
       });
     });

$(document).ready(function() {
         $('#TaBLefT, #TaBMID, #TaBRighT').bind("mouseenter",function(){
          $(this).stop().animate({ 'top': '-5px' }, 400);
       });
         $('#TaBLefT, #TaBMID, #TaBRighT').bind("mouseleave",function(){
          $(this).stop().animate({ 'top': '-20px' }, 400);
       });
     });

$(document).ready(function() {
$("a.HelPLinK").hover(function() {
$(this).addClass('HelPLinK_TxT_hi');
}, function() {
$(this).removeClass('HelPLinK_TxT_hi');
});

$(".TransfeRBuTT").hover(function() {
$(this).addClass('TransfeRBuTT_Hi');
}, function() {
$(this).removeClass('TransfeRBuTT_Hi');
});

$(".ReaD_PosTs,.PosT_LinK,.StoP_ScroLL,.MaiN_ScroLLMe_Up,.MaiN_ScroLLMe_Dwn,.ScroLLMe_Up,.ScroLLMe_Up_sL,.ScroLLMe_Dwn,.ScroLLMe_Dwn_sL,.ScroLLMe_ToP,.ScroLLMe_ToP_L,.ScroLLMe_ToP_R,.TopRightClosE,.TopLeftClosE,.BottomLeftClosE,.BottomRightClosE,#FooTBuTT img,#SideBar img,#SideBar_RiGhT img,#MuSicBar img,.NaVTaB,.NaVTaB_on,.PreViouS,.NexT").hover(
 function()
 {
  this.src = this.src.replace("_off","_on");
 },
 function()
 {
  this.src = this.src.replace("_on","_off");
 }
);

$(".TopLeftClosE_ThumbViD").hover(
 function()
 {
  this.src = this.src.replace("_off","_on");
 },
 function()
 {
  this.src = this.src.replace("_on","_off");
 }
);

$("#FloateRsBoX").toggle(function() {
   $('#SelecT_FloateRs_MeNu').animate({"left": '66%', "top": '15%'});
   var speed = 300;
   speed *= $('#SelecT_FloateRs_MeNu').length;
   $('#SelecT_FloateRs_MeNu').animate({ width: '12%', height: '37%' }, speed, "linear");
   EvalSound('TransPorTeR');
 },
function()
{ var speed = 300;
   speed *= $('#SelecT_FloateRs_MeNu').length;
 $('#SelecT_FloateRs_MeNu').animate({ width: '0', height: '0' }, speed, "linear");
   $('#SelecT_FloateRs_MeNu').animate({"left": '-200%', "top": '-200%'});
   setTimeout('$("#SelecT_FloateRs_MeNu").fadeOut("slow")', 500);
 });

$("#SelecT_FloateRs_MeNu").bind("mouseleave",function(){
   $('#FloateRsBoX').trigger('click');
});
});

$(document).ready(function() {
 $('#slideMenu').click (function(){
  $(this).stop().animate({ 'left': '-10px' }, 'med');
 });

$('#SideBar').bind("mouseenter",function(){
  $('#slideMenu').animate({ 'left': '-151px' }, 'med')
});

$('#slideMenu').bind("mouseleave",function(){
  $(this).stop().animate({ 'left': '-156px' }, 'slow');
});

$(document).ready(function() {
$('#Main_Styles').bind("mouseleave",function(){
  $('#Site_Styles').trigger('click');
});
});

$('#MenuContent').bind("mouseenter",function(){
  $('#slideMenu').stop().animate({ 'left': '-10px' })
});

 $('#slideMenu_RiGhT').click (function(){
  $(this).stop().animate({ 'right': '-10px' }, 'med');
 });

$('#SideBar_RiGhT').bind("mouseenter",function(){
  $('#slideMenu_RiGhT').animate({ 'right': '-151px' }, 'med')
});

$('#slideMenu_RiGhT').bind("mouseleave",function(){
  $(this).stop().animate({ 'right': '-156px' }, 'slow')
});

$('#MenuContent_RiGhT').bind("mouseenter",function(){
  $('#slideMenu_RiGhT').stop().animate({ 'right': '-10px' })
});
});

function toggleLayer(whichLayer){
if (document.getElementById){
var style = document.getElementById(whichLayer).style;
style.display = style.display? "":"block";
 }
}
function MeNuSHoW() {setTimeout("document.getElementById('MeNuShells').style.display = 'block'", 2000);
 }
function KiLLMeNuS() {document.getElementById('MeNuShells').style.display = 'none';
}

$(document).ready(function() {
   $('.ThumBViDs').jqDrag();
});

