$(function(){$("#intro").flashembed({src:"media/flash/slicer.swf",wmode:"transparent"});if($("#promotion").length>0){$(window).bind("resize",function(){$(".pgecontainer").pgeConCen()});$(window).bind("load",function(){$("#promotion").PgeMask(function(){$(".pgecontainer img, .pgewrapper .pgemask").click(function(){$(this).PgeUnloadmask()})})})}$("div.faq").length>0&&$("div.faq").accordion();$("#client-list").length&&$("#client-list").simpleCycle({child:"li"});vs={cycler:$("#videocycle div"),switcher:$("#vidtab a"), swf:"media/videos/player_flv_maxi.swf",config_file:"media/videos/config.xml"};$(".video").length&&$(".video").each(function(){var a=$(this).attr("rel");$(this).flashembed({src:vs.swf,wmode:"transparent"},{flv:a,configxml:vs.config_file})});if($("#videocycle").length){vs.cycler.hide().eq(0).flashembed({src:vs.swf,wmode:"transparent"},{flv:vs.cycler.eq(0).attr("rel"),configxml:vs.config_file}).show();vs.switcher.bind("click",function(){ti=vs.switcher.index(this);vidsrc=vs.cycler.eq(ti).attr("rel"); vs.cycler.empty().hide().eq(ti).flashembed({src:vs.swf,wmode:"transparent"},{flv:vidsrc,configxml:vs.config_file,autoplay:1}).show();return false})}$("a,img,h1,h2,h3,input,span,div").each(function(){$(this).attr("title").length>0&&$(this).tipsy({opacity:1,html:true,gravity:"n"})});$("div.lvl1").leveloff();$("div.lvl2").leveloff();$("#reseller_form_t").hide();$("#reseller_form").submit(function(){$("#reseller_form_t").text("Processing...").fadeIn();expVals="";$("#reseller_form_t").text("Getting Data...").fadeIn(); $('#reseller_form input[type="text"]').each(function(){expVals=expVals+$(this).val()+"SPACEITOUTNOW"});$("#reseller_form textarea").each(function(){expVals=expVals+$(this).val()+"SPACEITOUTNOW"});$("#reseller_form select").each(function(){expVals=expVals+$(this).val()+"SPACEITOUTNOW"});$("#reseller_form_t").text("Sending Mail...").fadeIn();$.post("../media/scripts/php/sendmail.php",{vals:expVals},function(a){$("#reseller_form_t").text(a).fadeIn()});return false});t={slider:$("#front_brands a"),slide:"span", inc:170,reset:0,queue:false,easing:"linear",duration:3500};slider_width=t.slider.children(t.slide).length*(t.slider.children(t.slide).width()+20);t.slider.width(slider_width*2);t.slider.children(t.slide).each(function(){n=$(this).html();t.slider.append("<"+t.slide+">"+n+"</"+t.slide+">")});pos=0;moo=setInterval(function(){if(pos<=-slider_width){pos=-t.inc;t.slider.css({left:t.reset})}else pos-=t.inc;t.slider.animate({left:pos},{queue:t.queue,easing:t.easing,duration:t.duration})},t.duration)});
$(window).scroll(function() {
    $("#fvideo").animate({
		top:$(window).scrollTop()
	},{
		queue:false,
		duration:300,
		easing: "swing"
	});
});

