$(document).ready(function(){$('.dragger').css('cursor','move');$('.glow').css('opacity',0);$('.glow2').css('opacity',0);$('.#bb1 div.bb1').css('overflow-x','hidden');$('.#bb2 div.bb2').css('overflow-x','hidden');$('.#bb3 div.bb3').css('overflow-x','hidden');$(window).load(function(){$('#bb2').animate({'left':($('html').width() / 2)-325},1500);$('#bb3').animate({'left':$('html').width()-370},1500,function(){$('.home').html("<div class='glow'></div>");$('.enlarge').html("<div class='glow'></div>");$('.bb1e').html("<div class='glow'></div><div class='info'>Enlarge</div>");$('.home1').html("<div class='glow'></div><div class='info'>Homepage</div>");$('.enlarge').show();$('.glow').css('opacity',0);$('.info').css('opacity',0);}).animate({'opacity':1},1,function(){$('.info').animate({'opacity':1},200,function(){$('.glow').animate({'opacity':0.8},1000).animate({'opacity':0},1000).animate({'opacity':0},300).animate({'opacity':0.8},1000).animate({'opacity':0},1000).animate({'opacity':0},200,function(){$('.enlarge').html("");$('.home').html("");});});});});var top=0;var width =0;var height=0;var width=0;$('.home1').click(function(){$('.bb1f').attr('title','intern');});$('.home2').click(function(){$('.bb2f').attr('title','intern');});$('.home3').click(function(){$('.bb3f').attr('title','intern');});$('#bb1').Draggable({zIndex:1000,ghosting:false,opacity:0.7,handle:'.dragger'});$('#bb2').Draggable({zIndex:1000,ghosting:false,opacity:0.7,handle:'.dragger'});$('#bb3').Draggable({zIndex:1000,ghosting:false,opacity:0.7,handle:'.dragger'});$('.doit').load(function(){var base=$(this).attr('name');var id='#' + base;var baseclass='.'+base;var frameclass=baseclass+'f';if($(frameclass).attr('title')!='intern'){$('.phone').css('z-index',20);$(id).css('z-index',200);top=parseInt($(baseclass).css('top').slice(0, -2));left=parseInt($(baseclass).css('left').slice(0, -2));width=$(baseclass).width();height=$(baseclass).height();$(baseclass).animate({'top': 30 - (parseInt($(id).css('top').slice(0, -2)))},200);$(baseclass).animate({'height': $('html').height() - 40},200);$(baseclass).animate({'left': 10 - (parseInt($(id).css('left').slice(0, -2)))},200);$(baseclass).animate({'width': $('html').width() - 20},200);$('.closesub').attr('name',baseclass).show();}$(frameclass).removeAttr('title');});$('.enlarge').click(function(){var base=$(this).attr('name');var id='#' + base;var baseclass='.'+base;var frameclass=baseclass+'f';if($(frameclass).attr('title')!='intern'){$('.phone').css('z-index',20);$(id).css('z-index',200);top=parseInt($(baseclass).css('top').slice(0, -2));left=parseInt($(baseclass).css('left').slice(0, -2));width=$(baseclass).width();height=$(baseclass).height();$(baseclass).animate({'top': 30 - (parseInt($(id).css('top').slice(0, -2)))},400);$(baseclass).animate({'height': $('html').height() - 40},400);$(baseclass).animate({'left': 10 - (parseInt($(id).css('left').slice(0, -2)))},400);$(baseclass).animate({'width': $('html').width() - 20},400);$('.closesub').attr('name',baseclass).show();}$(frameclass).removeAttr('title');});$('.closesub').click(function(e){var name=$(this).attr('name');$(name).animate({'top': top},400);$(name).animate({'height': height},400);$(name).animate({'left': left},400);$(name).animate({'width': width},400,function(){$('.closesub').hide();});});$('.phone').mousedown(function(e){$('.phone').css('z-index',20);$(this).css('z-index',200);});$('.phone').mouseup(function(e){$('.phone').css('z-index',20);$(this).css('z-index',200);});$(window).load(function(){$('.ancont').animate({'opacity':1},2000,function(){$('.feather').animate({'bottom':70},1000).animate({'bottom':0},100).animate({'bottom':80},100).animate({'bottom':0},100).animate({'bottom':150},100).animate({'bottom':30},100).animate({'bottom':80},100).animate({'bottom':90},100).animate({'bottom':10},100).animate({'bottom':90},100).animate({'bottom':10},100).animate({'bottom':160},100).animate({'bottom':60},100).animate({'bottom':160},100).animate({'bottom':10},100).animate({'bottom':80},100).animate({'bottom':70},25).animate({'bottom':150},75).animate({'bottom':70},100).animate({'bottom':130},100).animate({'bottom':20},100).animate({'bottom':60},100).animate({'bottom':20},100).animate({'bottom':80},100).animate({'bottom':70},50).animate({'bottom':90},50).animate({'bottom':80},50).animate({'bottom':100},50).animate({'bottom':90},50).animate({'bottom':110},50).animate({'bottom':100},50).animate({'bottom':130},50).animate({'bottom':10},100).animate({'bottom':150},100).animate({'bottom':90},100).animate({'bottom':160},100).animate({'bottom':20},100).animate({'bottom':300},500);$('.an').animate({'width':400},1000).animate({'width':725},3800);});});});