/*
*
* Easy front-end framework
*
* Copyright (c) 2011 Alen Grakalic
* http://easyframework.com/license.php
*
* supported by Templatica (http://templatica.com)
* and Css Globe (http://cssglobe.com)
*
* built to be used with jQuery library
* http://jquery.com
*
* update: Mar 22nd 2011
*
*/
(function($){$.easy={navigation:function(_11){var _12={selector:"#nav li, nav li",className:"over"};if(typeof _11=="string"){_12.selector=_11;}var _11=$.extend(_12,_11);return $(_11.selector).each(function(){$(this).hover(function(){$("ul:first",this).fadeIn(100);$(this).addClass(_11.className);},function(){$("ul",this).hide();$(this).removeClass(_11.className);});});},tooltip:function(_13){var _14={selector:".tooltip",xOffset:10,yOffset:25,clickRemove:false,id:"easy_tooltip",content:"",useElement:""};if(typeof _13=="string"){_14.selector=_13;}var _13=$.extend(_14,_13);var _15;return $(_13.selector).each(function(){var _16=$(this).attr("title");$(this).hover(function(e){_15=(_13.content!="")?_13.content:_16;_15=(_13.useElement!="")?$("#"+_13.useElement).html():_15;$(this).attr("title","");if(_15!=""&&_15!=undefined){$("body").append("
"+_15+"
");$("#"+_13.id).css({"position":"absolute","display":"none"}).css("top",(e.pageY-_13.yOffset)+"px").css("left",(e.pageX+_13.xOffset)+"px").fadeIn("fast");}},function(){$("#"+_13.id).remove();$(this).attr("title",_16);});$(this).mousemove(function(e){var x=((e.pageX+_13.xOffset+$(this).width())<$(window).width())?(e.pageX+_13.xOffset):(e.pageX-_13.xOffset-$(this).width()-16);$("#"+_13.id).css("top",(e.pageY-_13.yOffset)+"px").css("left",(x+"px"));});if(_13.clickRemove){$(this).mousedown(function(e){$("#"+_13.id).remove();$(this).attr("title",_16);});}});},popup:function(_17){var _18={selector:".popup",popupId:"easy_popup",preloadText:"Loading...",errorText:"There has been a problem with your request, please click outside this window to close it.",closeText:"Close",prevText:"« Previous",nextText:"Next »",opacity:0.7,hiddenClass:"hidden",callback:function(){}};if(typeof _17=="string"){_18.selector=_17;}var _17=$.extend(_18,_17);return $(_17.selector).each(function(i){var obj=this;var _19,_1a;var _1b=true;var _1c=this.tagName.toLowerCase();if($(this).hasClass("gallery")){var _1d=$(this).attr("class");_1d=_1d.split(" ").join("");$.data(this,"gallery",_1d);eval("if((typeof "+_1d+"_arr == \"undefined\")) "+_1d+"_arr= new Array()");eval(_1d+"_arr").push($(this));$.data(this,"index",eval(_1d+"_arr").length-1);}if($.browser.opera){$.support.opacity=true;}var ie6=$.browser.msie&&$.browser.version.substr(0,1)<7;var _1e=$.browser.opera&&$.browser.version<=9.5;var w,h,w2,h2;var cw,ch;cw=ch=0;var _1f=false;var _20=function(){w=$(window).width();h=$(document).height();w2=$(window).width()/2;h2=$(window).height()/2;if($("#"+_17.popupId).length==0){$("").appendTo("body").css({"width":w,"height":h,"position":"absolute","top":"0","left":"0","z-index":"10000","opacity":_17.opacity}).click(function(){_26();});}$("