/**
 * jQuery LightTip 1.0.1
 * http://jonathanwilsson.com/projects/lighttip/
 *
 * Copyright 2011 Jonathan Wilsson
 *
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Modified for Gothia Protection Group by Jonathan Wilsson (c) 2011
 *
 *
 * jQuery NewsTicker 1.1
 * http://jonathanwilsson.com/projects/jquery-newsticker/
 *
 * Copyright 2011 Jonathan Wilsson
 *
 * Original code by Nicolas Gutierrez
 * http://www.yourinspirationweb.com/en/jquery-how-to-create-a-news-ticker-with-just-a-few-javascript-lines/
 *
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Modified for Gothia Protection Group by Jonathan Wilsson (c) 2011
 */
(function(a){a.fn.LightTip=function(b){return this.each(function(){if(a(".tooltip").length<=0){a("body").append('<div class="tooltip"></div>')}var d=a(this),c=a(".tooltip");c.hide();d.hover(function(){var f=d.attr("title"),e,g=d.attr("id");e=f.split(" - ");d.data("orgTitle",f).attr("title","");if(g!=="sweden"){d.css("background","url(/img/front/dots.png) 0 -12px no-repeat")}c.html("<h3>"+e[0]+'</h3> <em class="bold">'+e[1]+"</em> <p>"+e[2]+'</p> <img src="/img/front/'+g+'.jpg" alt="">').show()},function(){d.attr("title",d.data("orgTitle"));if(d.attr("id")!=="sweden"){d.css("background","url(/img/front/dots.png) 0 0 no-repeat")}c.html("").hide()});d.bind("mousemove",function(l){var f="auto",k=l.pageX+10,i=0,h=0,g="auto",j=l.pageY+10,m=l.target.id;switch(m){case"india":case"jordan":f=(a(window).height()-j)-160;h="-13px";i="15px";g=a(window).width()-k;k="auto";j="auto";break;case"lebanon":case"israel":case"syria":case"pakistan":case"cyprus":case"bulgaria":case"estonia":case"finland":case"georgia":case"greece":case"latvia":case"lithuania":case"poland":case"russia":case"belarus":g=a(window).width()-k;k="auto";break;case"thailand":f=(a(window).height()-j)-50;j="auto";break;case"philippines":case"cambodia":case"cayman-islands":case"trinidad":f=(a(window).height()-j)-70;j="auto";break;case"china":case"japan":f=(a(window).height()-j)-140;j="auto";break;case"chile":f=a(window).height()-j;j="auto";break;case"kenya":f=(a(window).height()-j)-80;h="-135px";i="15px";g=a(window).width()-k;k="auto";j="auto";break}c.css({bottom:f,left:k,marginRight:i,marginTop:h,position:"absolute",right:g,top:j})})})}}(jQuery));(function(a){a.fn.NewsTicker=function(b){var e={id:"",height:0,timeout:null},d={interval:5000,speed:800,pauseOnHover:true};if(b){a.extend(d,b)}function c(){e.timeout=setTimeout(function(){a(e.id+" li:first").animate({marginTop:"-"+e.height},d.speed,function(){a(this).detach().appendTo(e.id).removeAttr("style")});c()},d.interval)}return this.each(function(){var f=a(this);f.css("overflow","hidden");e.id="#"+f.attr("id");e.height=f.height();c();if(d.pauseOnHover){f.bind("mouseover",function(){clearTimeout(e.timeout)}).bind("mouseout",function(){c()})}})}}(jQuery));
