﻿$(document).ready(function() {
 window.resizeTo(width + 450, ((height < 500) ? 500 : height) + 150); $(".main").css({ width: width + 394 + "px" }); if (height < 500) { $(".m7").css({ height: "500px", background: "none" }); $(".m2").css({ background: "none" }); $(".m3").addClass("m3_2") } $(".pic").css({ marginRight: "400px" }); 
	 $(function() { 
	  setInterval(grabAttention, 5000);
	  $(".LinkBtn").click(function() { centerPopup(regHeight); loadPopup(1);$("#permaLink").focus();
  	  $("#permaLink").select(); });
	  $("#permaLink").val(window.location);	  
	  })
});
 
 function grabAttention()
 {
 	 $("#galLink").animate({left:"+=2.5px"},40).animate({top:"+=2.5px"},40)
    .animate({top:"-=5px"},40).animate({left:"-=5px"},40)
    .animate({top:"+=2.5px"},40).animate({left:"+=2.5px"},40)
    .animate({left:"+=2.5px"},40).animate({top:"+=2.5px"},40)
    .animate({top:"-=5px"},40).animate({left:"-=5px"},40)
    .animate({top:"+=2.2.5px"},40).animate({left:"+=2.5px"},40, function(){
    for(i=0; i<2; i++)
	$("#galLink").animate({ color: "#fff", backgroundColor: "red" }, 400, function(){
		$("#galLink").animate({ color: "#333", backgroundColor: "white" }, 400);
		});    
    });
 }
