/* Core JS Stuff 

/* Latest Update: 9 Jan 2009 */

$(document).ready(function(){
 
var slideheight =100;
var storehitviewbloc;
var activecolor = '#C79810';
var inactivecolor = '#00cc00';
var hoverColor = "#00cc00";
var bigLogColor=inactivecolor;
var bigWebColor=activecolor;
var bigLogHoverColor = inactivecolor;
var bigWebHoverColor = hoverColor;

$("#biglist").css("display","none");
 
    $("#bigweb").click(function () {
      //if ($("#bigwhite").is(":hidden")) {
        $("#bigwhite").slideUp("slow");
        $("#biglist").slideDown("slow");
        bigLogColor=activecolor;
        bigWebColor=inactivecolor;
        bigLogHoverColor = hoverColor;
        bigWebHoverColor = inactivecolor;
        $("#bigweb a").css("color",bigWebColor); 
        $("#biglog a").css("color",bigLogColor); 
     });
   $("#biglog").click(function () {
       $("#biglist").slideUp("slow");
        $("#bigwhite").slideDown("slow");
        bigLogColor=inactivecolor;
        bigWebColor=activecolor;
        bigLogHoverColor = inactivecolor;
        bigWebHoverColor = hoverColor;
       $("#bigweb a").css("color",bigWebColor); 
       $("#biglog a").css("color",bigLogColor);     
    });

    $("#biglog a").hover(function(){$(this).css("color",bigLogHoverColor); }
        ,function(){
       $(this).css('color',bigLogColor); //mouseout
       }); 
   $("#bigweb a").hover(function(){$(this).css("color",bigWebHoverColor); }
        ,function(){
       $(this).css('color',bigWebColor); //mouseout
       }); 

    $("div")
        .filter(".viewblock")
         .click(function () {
          $("#iframeID").css("visibility","hidden"); 
          //$("#iframeID").attr("src","welcome.html"); 
          $("#infoinframe").css("display","inline");
          $("#infoinframe").html("<img src='assets/ajax-loader666.gif' />");
          url=$(this).attr('title');
          $("#iframeID").attr("src",url); 
          $(storehitviewbloc).children("img").attr("src","assets/view.jpg"); 
          $(this).children("img").attr("src","assets/viewconnect.jpg"); 
          storehitviewbloc=$(this);
           })
        .end()


        $("iframe").load(function()
        {
           if ($("#bigwhite").is(":hidden")) {
          $("#iframeID").css("visibility","visible"); 
              $("#infoinframe").css("display","none");
            }
         $(storehitviewbloc).children("img").attr("src","assets/viewoff.jpg"); 
 
         });

 

 });

