
/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/


// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});



/* idTabs ~ Sean Catchpole - Version 2.2 - MIT/GPL */
(function(){var dep={"jQuery":"jquery-1.2.6.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;i<arguments.length;++i){var a=arguments[i];switch(a.constructor){case Object:$.extend(s,a);break;case Boolean:s.change=a;break;case Number:s.start=a;break;case Function:s.click=a;break;case String:if(a.charAt(0)=='.')s.selected=a;else if(a.charAt(0)=='!')s.event=a;else s.start=a;break;}}
if(typeof s['return']=="function")
s.change=s['return'];return this.each(function(){$.idTabs(this,s);});}
$.idTabs=function(tabs,options){var meta=($.metadata)?$(tabs).metadata():{};var s=$.extend({},$.idTabs.settings,meta,options);if(s.selected.charAt(0)=='.')s.selected=s.selected.substr(1);if(s.event.charAt(0)=='!')s.event=s.event.substr(1);if(s.start==null)s.start=-1;var showId=function(){if($(this).is('.'+s.selected))
return s.change;var id="#"+this.href.split('#')[1];var aList=[];var idList=[];$("a",tabs).each(function(){if(this.href.match(/#/)){aList.push(this);idList.push("#"+this.href.split('#')[1]);}});if(s.click&&!s.click.apply(this,[id,idList,tabs,s]))return s.change;for(i in aList)$(aList[i]).removeClass(s.selected);for(i in idList)$(idList[i]).hide();$(this).addClass(s.selected);$(id).show();return s.change;}
var list=$("a[href*='#']",tabs).unbind(s.event,showId).bind(s.event,showId);list.each(function(){$("#"+this.href.split('#')[1]).hide();});var test=false;if((test=list.filter('.'+s.selected)).length);else if(typeof s.start=="number"&&(test=list.eq(s.start)).length);else if(typeof s.start=="string"&&(test=list.filter("[href*='#"+s.start+"']")).length);if(test){test.removeClass(s.selected);test.trigger(s.event);}
return s;}
$.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};$.idTabs.version="2.2";$(function(){$(".idTabs").idTabs();});})(jQuery);}
var check=function(o,s){s=s.split('.');while(o&&s.length)o=o[s.shift()];return o;}
var head=document.getElementsByTagName("head")[0];var add=function(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;head.appendChild(s);}
var s=document.getElementsByTagName('script');var src=s[s.length-1].src;var ok=true;for(d in dep){if(check(this,d))continue;ok=false;add(dep[d]);}if(ok)return init();add(src);})();


/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);

/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version: 2.26
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(4($){8 n=\'2.26\';8 q=$.22.23&&/30 6.0/.1t(31.32);4 1p(){7(24.25&&24.25.1p)24.25.1p(\'[B] \'+33.34.35.36(37,\'\'))};$.E.B=4(m){O A.1q(4(){7(m===38||m===P)m={};7(m.27==2w){39(m){28\'3a\':7(A.U)1D(A.U);A.U=0;$(A).1K(\'B.29\',\'\');O;28\'2a\':A.1l=1;O;28\'3b\':A.1l=0;O;3c:m={1r:m}}}Q 7(m.27==3d){8 c=m;m=$(A).1K(\'B.29\');7(!m){1p(\'3e 1u 3f, 3g 1u 1L 2x\');O}7(c<0||c>=m.2b.L){1p(\'3h 2x 1E: \'+c);O}m.N=c;7(A.U){1D(A.U);A.U=0}1m(m.2b,m,1,c>=m.1d);O}7(A.U)1D(A.U);A.U=0;A.1l=0;8 d=$(A);8 e=m.2c?$(m.2c,A):d.3i();8 f=e.3j();7(f.L<2){1p(\'3k; 3l 3m 3n: \'+f.L);O}8 g=$.3o({},$.E.B.2y,m||{},$.2z?d.2z():$.3p?d.1K():{});7(g.2d)g.2e=g.2f||f.L;d.1K(\'B.29\',g);g.1M=A;g.2b=f;g.H=g.H?[g.H]:[];g.1i=g.1i?[g.1i]:[];g.1i.2A(4(){g.2g=0});7(g.1v)g.1i.J(4(){1m(f,g,0,!g.1w)});7(q&&g.1N&&!g.2B)2h(e);8 h=A.3q;g.D=W((h.1F(/w:(\\d+)/)||[])[1])||g.D;g.C=W((h.1F(/h:(\\d+)/)||[])[1])||g.C;g.X=W((h.1F(/t:(\\d+)/)||[])[1])||g.X;7(d.u(\'1O\')==\'3r\')d.u(\'1O\',\'3s\');7(g.D)d.D(g.D);7(g.C&&g.C!=\'1P\')d.C(g.C);7(g.1j){g.1n=[];1G(8 i=0;i<f.L;i++)g.1n.J(i);g.1n.3t(4(a,b){O 3u.1j()-0.5});g.Y=0;g.1f=g.1n[0]}Q 7(g.1f>=f.L)g.1f=0;8 j=g.1f||0;e.u({1O:\'2C\',x:0,9:0}).T().1q(4(i){8 z=j?i>=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0,2c:P,1N:0,1W:0,2L:0}})(2S);(4($){$.E.B.M.3Y=4(d,e,f){d.u(\'17\',\'1b\');f.H.J(4(a,b,c){$(A).S();c.y.x=b.1z;c.G.x=0-a.1z});f.1e={x:0};f.I={x:0};f.K={R:\'V\'}};$.E.B.M.3Z=4(d,e,f){d.u(\'17\',\'1b\');f.H.J(4(a,b,c){$(A).S();c.y.x=0-b.1z;c.G.x=a.1z});f.1e={x:0};f.I={x:0};f.K={R:\'V\'}};$.E.B.M.40=4(d,e,f){d.u(\'17\',\'1b\');f.H.J(4(a,b,c){$(A).S();c.y.9=b.1A;c.G.9=0-a.1A});f.1e={9:0};f.I={9:0}};$.E.B.M.41=4(d,e,f){d.u(\'17\',\'1b\');f.H.J(4(a,b,c){$(A).S();c.y.9=0-b.1A;c.G.9=a.1A});f.1e={9:0};f.I={9:0}};$.E.B.M.42=4(f,g,h){f.u(\'17\',\'1b\').D();h.H.J(4(a,b,c,d){$(A).S();8 e=a.1A,2t=b.1A;c.y=d?{9:2t}:{9:-2t};c.I.9=0;c.G.9=d?-e:e;g.1u(a).u(c.y)});h.1e={9:0};h.K={R:\'V\'}};$.E.B.M.43=4(f,g,h){f.u(\'17\',\'1b\');h.H.J(4(a,b,c,d){$(A).S();8 e=a.1z,2u=b.1z;c.y=d?{x:-2u}:{x:2u};c.I.x=0;c.G.x=d?e:-e;g.1u(a).u(c.y)});h.1e={x:0};h.K={R:\'V\'}};$.E.B.M.44=4(d,e,f){f.H.J(4(a,b,c){$(a).u(\'F\',1)});f.12=4(a){a.T()};f.y={F:2};f.I={D:\'S\'};f.G={D:\'T\'}};$.E.B.M.45=4(d,e,f){f.H.J(4(a,b,c){$(a).u(\'F\',1)});f.12=4(a){a.T()};f.y={F:2};f.I={C:\'S\'};f.G={C:\'T\'}};$.E.B.M.1J=4(g,h,j){8 w=g.u(\'17\',\'2T\').D();h.u({9:0,x:0});j.H.J(4(){$(A).S()});j.19=j.19/2;j.1j=0;j.1J=j.1J||{9:-w,x:15};j.1a=[];1G(8 i=0;i<h.L;i++)j.1a.J(h[i]);1G(8 i=0;i<j.1f;i++)j.1a.J(j.1a.2U());j.1X=4(a,b,c,d,e){8 f=e?$(a):$(b);f.21(c.1J,c.1x,c.1R,4(){e?c.1a.J(c.1a.2U()):c.1a.2A(c.1a.46());7(e)1G(8 i=0,2v=c.1a.L;i<2v;i++)$(c.1a[i]).u(\'z-1E\',2v-i);Q{8 z=$(a).u(\'z-1E\');f.u(\'z-1E\',W(z)+1)}f.21({9:0,x:0},c.1H,c.1S,4(){$(e?A:a).T();7(d)d()})})};j.12=4(a){a.T()}};$.E.B.M.47=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.y.x=b.Z;c.I.C=b.Z});f.12=4(a){a.T()};f.1e={x:0};f.y={C:0};f.I={x:0};f.G={C:0};f.K={R:\'V\'}};$.E.B.M.48=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.I.C=b.Z;c.G.x=a.Z});f.12=4(a){a.T()};f.1e={x:0};f.y={x:0,C:0};f.G={C:0};f.K={R:\'V\'}};$.E.B.M.49=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.y.9=b.11;c.I.D=b.11});f.12=4(a){a.T()};f.y={D:0};f.I={9:0};f.G={D:0};f.K={R:\'V\'}};$.E.B.M.4a=4(d,e,f){f.H.J(4(a,b,c){$(A).S();c.I.D=b.11;c.G.9=a.11});f.12=4(a){a.T()};f.y={9:0,D:0};f.I={9:0};f.G={D:0};f.K={R:\'V\'}};$.E.B.M.2V=4(d,e,f){f.1e={x:0,9:0};f.K={R:\'V\'};f.H.J(4(a,b,c){$(A).S();c.y={D:0,C:0,x:b.Z/2,9:b.11/2};c.K={R:\'V\'};c.I={x:0,9:0,D:b.11,C:b.Z};c.G={D:0,C:0,x:a.Z/2,9:a.11/2};$(a).u(\'F\',2);$(b).u(\'F\',1)});f.12=4(a){a.T()}};$.E.B.M.4b=4(d,e,f){f.H.J(4(a,b,c){c.y={D:0,C:0,1g:1,9:b.11/2,x:b.Z/2,F:1};c.I={x:0,9:0,D:b.11,C:b.Z}});f.G={1g:0};f.K={F:0}};$.E.B.M.4c=4(d,e,f){8 w=d.u(\'17\',\'1b\').D();e.S();f.H.J(4(a,b,c){$(a).u(\'F\',1)});f.y={9:w,F:2};f.K={F:1};f.I={9:0};f.G={9:w}};$.E.B.M.4d=4(d,e,f){8 h=d.u(\'17\',\'1b\').C();e.S();f.H.J(4(a,b,c){$(a).u(\'F\',1)});f.y={x:h,F:2};f.K={F:1};f.I={x:0};f.G={x:h}};$.E.B.M.4e=4(d,e,f){8 h=d.u(\'17\',\'1b\').C();8 w=d.D();e.S();f.H.J(4(a,b,c){$(a).u(\'F\',1)});f.y={x:h,9:w,F:2};f.K={F:1};f.I={x:0,9:0};f.G={x:h,9:w}};$.E.B.M.4f=4(d,e,f){f.H.J(4(a,b,c){c.y={9:A.11/2,D:0,F:2};c.I={9:0,D:A.11};c.G={9:0};$(a).u(\'F\',1)});f.12=4(a){a.T().u(\'F\',1)}};$.E.B.M.4g=4(d,e,f){f.H.J(4(a,b,c){c.y={x:A.Z/2,C:0,F:2};c.I={x:0,C:A.Z};c.G={x:0};$(a).u(\'F\',1)});f.12=4(a){a.T().u(\'F\',1)}};$.E.B.M.4h=4(d,e,f){f.H.J(4(a,b,c){c.y={9:b.11/2,D:0,F:1,R:\'1B\'};c.I={9:0,D:A.11};c.G={9:a.11/2,D:0};$(a).u(\'F\',2)});f.12=4(a){a.T()};f.K={F:1,R:\'V\'}};$.E.B.M.4i=4(d,e,f){f.H.J(4(a,b,c){c.y={x:b.Z/2,C:0,F:1,R:\'1B\'};c.I={x:0,C:A.Z};c.G={x:a.Z/2,C:0};$(a).u(\'F\',2)});f.12=4(a){a.T()};f.K={F:1,R:\'V\'}};$.E.B.M.4j=4(e,f,g){8 d=g.2W||\'9\';8 w=e.u(\'17\',\'1b\').D();8 h=e.C();g.H.J(4(a,b,c){c.y=c.y||{};c.y.F=2;c.y.R=\'1B\';7(d==\'2X\')c.y.9=-w;Q 7(d==\'2Y\')c.y.x=h;Q 7(d==\'2Z\')c.y.x=-h;Q c.y.9=w;$(a).u(\'F\',1)});7(!g.I)g.I={9:0,x:0};7(!g.G)g.G={9:0,x:0};g.K=g.K||{};g.K.F=2;g.K.R=\'V\'};$.E.B.M.4k=4(e,f,g){8 d=g.2W||\'9\';8 w=e.u(\'17\',\'1b\').D();8 h=e.C();g.H.J(4(a,b,c){c.y.R=\'1B\';7(d==\'2X\')c.G.9=w;Q 7(d==\'2Y\')c.G.x=-h;Q 7(d==\'2Z\')c.G.x=h;Q c.G.9=-w;$(a).u(\'F\',2);$(b).u(\'F\',1)});g.12=4(a){a.T()};7(!g.I)g.I={9:0,x:0};g.y=g.y||{};g.y.x=0;g.y.9=0;g.K=g.K||{};g.K.F=1;g.K.R=\'V\'};$.E.B.M.4l=4(d,e,f){8 w=d.u(\'17\',\'2T\').D();8 h=d.C();f.H.J(4(a,b,c){$(a).u(\'F\',2);c.y.R=\'1B\';7(!c.G.9&&!c.G.x)c.G={9:w*2,x:-h/2,1g:0};Q c.G.1g=0});f.12=4(a){a.T()};f.y={9:0,x:0,F:1,1g:1};f.I={9:0};f.K={F:2,R:\'V\'}};$.E.B.M.4m=4(o,p,q){8 w=o.u(\'17\',\'1b\').D();8 h=o.C();q.y=q.y||{};8 s;7(q.1h){7(/4n/.1t(q.1h))s=\'1s(1c 1c \'+h+\'14 1c)\';Q 7(/4o/.1t(q.1h))s=\'1s(1c \'+w+\'14 \'+h+\'14 \'+w+\'14)\';Q 7(/4p/.1t(q.1h))s=\'1s(1c \'+w+\'14 1c 1c)\';Q 7(/4q/.1t(q.1h))s=\'1s(\'+h+\'14 \'+w+\'14 \'+h+\'14 1c)\';Q 7(/2V/.1t(q.1h)){8 t=W(h/2);8 l=W(w/2);s=\'1s(\'+t+\'14 \'+l+\'14 \'+t+\'14 \'+l+\'14)\'}}q.y.1h=q.y.1h||s||\'1s(1c 1c 1c 1c)\';8 d=q.y.1h.1F(/(\\d+)/g);8 t=W(d[0]),r=W(d[1]),b=W(d[2]),l=W(d[3]);q.H.J(4(g,i,j){7(g==i)O;8 k=$(g).u(\'F\',2);8 m=$(i).u({F:3,R:\'1B\'});8 n=1,1C=W((j.1x/13))-1;4 f(){8 a=t?t-W(n*(t/1C)):0;8 c=l?l-W(n*(l/1C)):0;8 d=b<h?b+W(n*((h-b)/1C||1)):h;8 e=r<w?r+W(n*((w-r)/1C||1)):w;m.u({1h:\'1s(\'+a+\'14 \'+e+\'14 \'+d+\'14 \'+c+\'14)\'});(n++<=1C)?1V(f,13):k.u(\'R\',\'V\')}f()});q.K={};q.I={9:0};q.G={9:0}}})(2S);',62,275,'||||function|||if|var|left|||||||||||||||||||||css|||top|cssBefore||this|cycle|height|width|fn|zIndex|animOut|before|animIn|push|cssAfter|length|transitions|nextSlide|return|null|else|display|show|hide|cycleTimeout|none|parseInt|timeout|randomIndex|cycleH||cycleW|onAddSlide||px|||overflow|next|speed|els|hidden|0px|currSlide|cssFirst|startingSlide|opacity|clip|after|random|fit|cyclePause|go|randomMap|pager|log|each|fx|rect|test|not|continuous|rev|speedIn|curr|offsetHeight|offsetWidth|block|count|clearTimeout|index|match|for|speedOut|click|shuffle|data|advance|container|cleartype|position|auto|sync|easeIn|easeOut|apply|typeof|setTimeout|nowrap|fxFn|false|prevNextClick|hex|animate|browser|msie|window|console||constructor|case|opts|pause|elements|slideExpr|autostop|countdown|autostopCount|busy|clearTypeFix|filter|custom|eq|easing|bind|prev|createPagerAnchor|end|updateActivePagerLink|pagerAnchorBuilder|pagerClick|nextW|nextH|len|String|slide|defaults|metadata|unshift|cleartypeNoBg|absolute|style|removeAttribute|isFunction|slideCount|true|buildPager|appendTo|delay|fastOnEvent|activeSlide|pagerEvent|getBg|background|color|fade|jQuery|visible|shift|zoom|direction|right|up|down|MSIE|navigator|userAgent|Array|prototype|join|call|arguments|undefined|switch|stop|resume|default|Number|options|found|can|invalid|children|get|terminating|too|few|slides|extend|meta|className|static|relative|sort|Math|hover|unknown|transition|slow|600|fast|200|400|while|250|addSlide|find|removeClass|addClass|href|parents|body|toString|nodeName|toLowerCase|html|parentNode|indexOf|rgb|transparent|ffffff|ver|4000|1000|scrollUp|scrollDown|scrollLeft|scrollRight|scrollHorz|scrollVert|slideX|slideY|pop|turnUp|turnDown|turnLeft|turnRight|fadeZoom|blindX|blindY|blindZ|growX|growY|curtainX|curtainY|cover|uncover|toss|wipe|l2r|r2l|t2b|b2t'.split('|'),0,{}));



/*
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */

;(function($){
	$.fn.superfish = function(op){

		var sf = $.fn.superfish,
			c = sf.c,
			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
			over = function(){
				var $$ = $(this), menu = getMenu($$);
				clearTimeout(menu.sfTimer);
				$$.showSuperfishUl().siblings().hideSuperfishUl();
			},
			out = function(){
				var $$ = $(this), menu = getMenu($$), o = sf.op;
				clearTimeout(menu.sfTimer);
				menu.sfTimer=setTimeout(function(){
					o.retainPath=($.inArray($$[0],o.$path)>-1);
					$$.hideSuperfishUl();
					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
				},o.delay);	
			},
			getMenu = function($menu){
				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
				sf.op = sf.o[menu.serial];
				return menu;
			},
			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
			
		return this.each(function() {
			var s = this.serial = sf.o.length;
			var o = $.extend({},sf.defaults,op);
			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
					.filter('li:has(ul)').removeClass(o.pathClass);
			});
			sf.o[s] = sf.op = o;
			
			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
				if (o.autoArrows) addArrow( $('>a:first-child',this) );
			})
			.not('.'+c.bcClass)
				.hideSuperfishUl();
			
			var $a = $('a',this);
			$a.each(function(i){
				var $li = $a.eq(i).parents('li');
				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
			});
			o.onInit.call(this);
			
		}).each(function() {
			var menuClasses = [c.menuClass];
			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
			$(this).addClass(menuClasses.join(' '));
		});
	};

	var sf = $.fn.superfish;
	sf.o = [];
	sf.op = {};
	sf.IE7fix = function(){
		var o = sf.op;
		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
			this.toggleClass(sf.c.shadowClass+'-off');
		};
	sf.c = {
		bcClass     : 'sf-breadcrumb',
		menuClass   : 'sf-js-enabled',
		anchorClass : 'sf-with-ul',
		arrowClass  : 'sf-sub-indicator',
		shadowClass : 'sf-shadow'
	};
	sf.defaults = {
		hoverClass	: 'sfHover',
		pathClass	: 'overideThisToUse',
		pathLevels	: 1,
		delay		: 20,
		animation	: {opacity:'show'},
		speed		: 'normal',
		autoArrows	: false,
		dropShadows : false,
		disableHI	: false,		// true disables hoverIntent detection
		onInit		: function(){}, // callback functions
		onBeforeShow: function(){},
		onShow		: function(){},
		onHide		: function(){}
	};
	$.fn.extend({
		hideSuperfishUl : function(){
			var o = sf.op,
				not = (o.retainPath===true) ? o.$path : '';
			o.retainPath = false;
			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
					.find('>ul').hide().css('visibility','hidden');
			o.onHide.call($ul);
			return this;
		},
		showSuperfishUl : function(){
			var o = sf.op,
				sh = sf.c.shadowClass+'-off',
				$ul = this.addClass(o.hoverClass)
					.find('>ul:hidden').css('visibility','visible');
			sf.IE7fix.call($ul);
			o.onBeforeShow.call($ul);
			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
			return this;
		}
	});

})(jQuery);

/**
 * @author Alexander Farkas
 */

(function($) {
	$.extend($.fx.step,{
	    backgroundPosition: function(fx) {
            if (fx.state == 0 && typeof fx.end == 'string') {
                var start = $.curCSS(fx.elem,'backgroundPosition');
                start = toArray(start);
                fx.start = [start[0],start[2]];
                var end = toArray(fx.end);
                fx.end = [end[0],end[2]];
                fx.unit = [end[1],end[3]];
			}
            var nowPosX = [];
            nowPosX[0] = ((fx.end[0] - fx.start[0]) * fx.pos) + fx.start[0] + fx.unit[0];
            nowPosX[1] = ((fx.end[1] - fx.start[1]) * fx.pos) + fx.start[1] + fx.unit[1];           
            fx.elem.style.backgroundPosition = nowPosX[0]+' '+nowPosX[1];
            
           function toArray(strg){
               strg = strg.replace(/left|top/g,'0px');
               strg = strg.replace(/right|bottom/g,'100%');
               strg = strg.replace(/(\d+)(\s|\)|$)/g,"$1px$2");
               var res = strg.match(/(\d+)(px|\%|em|pt)\s(\d+)(px|\%|em|pt)/);
               return [parseFloat(res[1]),res[2],parseFloat(res[3]),res[4]];
           }
        }
	});
    
})(jQuery);


$(document).ready(function() {

				// Install fade-toggle plugin
				jQuery.fn.fadeToggle = function(speed, easing, callback) {
				   return this.animate({opacity: 'toggle'}, speed, easing, callback);
				};
				
				
				
				// XMAS Buy DATES
				// $('body').append('<a href="/xmasdates.asp" title="Last post out dates for the boxed Mr Site"><div class="xmas"></div></a>');
				// $('div.xmas').css('position','fixed');
				
				//$('div#h-nav ul.nav li a:contains("Take a Tour")').after('<li class="uncurrent"><a href="/xmasdates.asp"><strong>Christmas Post Dates</strong></a></li>');
				//$('div#h-nav ul.nav li a:contains("Christmas Post Dates")').css({background : "#ce0202", color : "#ffffff", cursor : "pointer"});
				
				/*
				$('li a:contains("Christmas Post Dates")').hover(function() {
					$(this).css({textDecoration:"underline", background: "#e54444"});
						}, function() {
					$(this).css({textDecoration:"none", background : "#ce0202"});
				}); */
				
				
				// ------------------------------------------------------------------ //
				// Default Link Styles
				$('a.dl').hover(function() {
					$(this).css({textDecoration:"underline", color:"2e74a6"});
						}, function() {
					$(this).css({textDecoration:"none", color:"2e74a6"});
				});
				// ------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				$('.corner5').corner('5px');
				$('.corner10').corner('10px');
				
				$('div.roundbox').corner();
				
				// ------------------------------------------------------------------ //
				// Get the menu working !
				$("ul.nav").superfish({
  					speed: "fast"
				});
				
				
				$('.nav li.dropdown a span, .nav li ul.dropdown').hover(function() {
					$(".nav li.dropdown a, .nav li.dropdown a span").css({backgroundPosition: '0% -33px'});
						}, function() {
					$(".nav li.dropdown a, .nav li.dropdown a span").css({backgroundPosition: '0% 0%'});
				});
				
				$('.nav li.dropdown2 a span, .nav li ul.dropdown2').hover(function() {
					$(".nav li.dropdown2 a, .nav li.dropdown2 a span").css({backgroundPosition: '0% -33px'});
						}, function() {
					$(".nav li.dropdown2 a, .nav li.dropdown2 a span").css({backgroundPosition: '0% 0%'});
				});
				
				$('.nav li.dropdown3 a span, .nav li ul.dropdown3').hover(function() {
					$(".nav li.dropdown3 a, .nav li.dropdown3 a span").css({backgroundPosition: '0% -33px'});
						}, function() {
					$(".nav li.dropdown3 a, .nav li.dropdown3 a span").css({backgroundPosition: '0% 0%'});
				});
				// ------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				// Some easing
				jQuery.easing.def = 'jswing';
				
				
				$('div#websiteofthemonth').cycle({fx:'fade', speed: 2500, pause: '10'});
				$('div.af_logo').cycle({fx: 'scrollDown', speed: 2500, pause: '11'});
				
				//$('ul.masthead_cycle').innerfade({speed:'slow', timeout: 4000, containerheight:'70px'});
				
				
				
				// MastHead welcome page 
				//var $master = $('#page_var_default #offer_top_default');
				
				var configpro = {sensitivity: 3,interval: 200,over: openpro,timeout: 200,out: closepro};
				var configstd = {sensitivity: 3,interval: 200,over: openstd,timeout: 200,out: closestd};
				var configbeg = {sensitivity: 3,interval: 200,over: openbeg,timeout: 200,out: closebeg};
				
				$("#probox").hoverIntent(configpro);
				$("#stdbox").hoverIntent(configstd);
				$("#begbox").hoverIntent(configbeg);
				
				function openpro(){ $('#offer_top_default_pro').fadeIn(400);}
				function closepro(){ $('#offer_top_default_pro').fadeOut(200);}
				function openstd(){ $('#offer_top_default_std').fadeIn(400);}
				function closestd(){ $('#offer_top_default_std').fadeOut(200);}
				function openbeg(){ $('#offer_top_default_beg').fadeIn(400);}
				function closebeg(){ $('#offer_top_default_beg').fadeOut(200);}
				
				
				 $("div.samplewebsitelist").idTabs(function(id,list,set){ 
					$("a li div.picon2",set).removeClass("selected") 
					.filter("[@href='"+id+"']",set).addClass("selected"); 
					for(i in list) 
					  $(list[i]).hide(); 
					$(id).fadeIn(500); 
					return false; 
				  }); 
				 
				var $more = $('a.morewebsites, a.morewebsites2, a.morewebsites3');
				var $less = $('a.lesswebsites, a.lesswebsites2, a.lesswebsites3');
				var $list = $('ul.websitelist');
				
				
				// ------------------------------------------------------------------ //
				// Control the samples page !! 
				$('a.morewebsites').click(function(){
						$list.animate({marginLeft: "-820px"}, 500);
						$more.hide();$less.hide();
						$('a.morewebsites2').show();
						$('a.lesswebsites').fadeIn(300);
				});
				
				$('a.morewebsites2').click(function(){
						$list.animate({marginLeft: "-1640px"}, 500);
						$more.hide();$less.hide();
						$('a.morewebsites3').show();
						$('a.lesswebsites2').show();
				});
				
				$('a.morewebsites3').click(function(){
						$list.animate({marginLeft: "-2460px"}, 500);
						$('a.morewebsites, a.morewebsites2').hide();
						$(this).fadeOut(300);
						$('a.lesswebsites3').show();
				});
				
				$('a.lesswebsites3').click(function(){								
						$list.animate({marginLeft: "-1640px"}, 500);
						$more.hide();$less.hide();
						$('a.lesswebsites2').show();
						$('a.morewebsites3').fadeIn(300);
				});
				
				$('a.lesswebsites2').click(function(){								
						$list.animate({marginLeft: "-820px"}, 500);
						$more.hide();$less.hide();
						$('a.lesswebsites').show();
						$('a.morewebsites2').show();
				});
				
				$('a.lesswebsites').click(function(){					
						$list.animate({marginLeft: "0px"}, 500);
						$more.hide();$('a.lesswebsites2, a.lesswebsites3').hide();
						$(this).fadeOut(300);
						$('a.morewebsites').show();
				});
				
				
				
				
				$('#samplewebsiteselector li div.picon2').hover(function() {
					$(this).addClass('mum');
						}, function() {
					$(this).removeClass('mum');
				});
				
				$('#samplewebsiteselector li div.picon2').click(function(){
					$('div.picon2').removeClass('youpickedasample');
					$(this).addClass('youpickedasample');													
				});
				// ------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				
				// ------------------------------------------------------------------ //
				// Sample Websites
				var $allsamples = $('ul.websitelist li'); // All samples
				var $scon = $('div.samplecontrol.on'); // Control Div SHOW
				var $scoff = $('div.samplecontrol.off'); // Control Div HIDE
				var $pick = $('div.sample-selection span'); // Pick a Category
				$('div.sample-selection span:first').addClass('sampleselection'); // Add a picked class to the first list element
				$('#samplewebsiteselector li div.picon2:first').addClass('youpickedasample');
				
				
				$('span.allwebsites.sampleselection').click(function(){
					$scoff.hide();
					$scon.show();												 
				});
				
				$('span.allwebsites').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   //$list.animate({marginLeft: "0px"}, 1);
					   $scoff.hide();$scon.show();
					   $allsamples.show();
					   $('a.morewebsites').show();
				});
				
				
				$('span.ecommerce').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.ecommerce').show();
				});
				
				$('span.fashion').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.fashion').show();
				});
				
				$('span.photo').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.photo').show();
				});
				
				$('span.jewellery').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.jewellery').show();
				});
				
				$('span.general').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.general').show();
				});
				
				$('span.music').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.music').show();
				});
				
				$('span.business').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.business').show();
				});
				
				$('span.sport').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.sport').show();
				});
				
				$('span.trade').click(function(){
					   $pick.removeClass('sampleselection');
					   $(this).addClass('sampleselection');
					   $list.animate({marginLeft: "0px"}, 1);
					   $more.fadeOut(300);$less.fadeOut(300);
					   $allsamples.hide();$scon.hide();$scoff.show();
					   $('ul.websitelist li.trade').show();
				});
				// ------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				// ------------------------------------------------------------------ //
				// Take a tour again 3 products 
				$('#tour_navigator ul li div.tour_option').hover(function() {
					$(this).addClass('touron');
						}, function() {
					$(this).removeClass('touron');
				});
				
				// Set up all navigators 
				var $alltour = $('#tour_box div.tour_page');
				var $tb = $('#tour_navigator ul li div.tour_option');
				
				//$alltour.hide(); // hide all tour pages to start off with
				
				$('#tour_navigator ul li div.tour_option.activate').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.activate').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.domainname').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.domainname').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.design').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.design').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.edit').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.edit').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.gallery').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$allgalleryb.removeClass('gallery-pick');$std.addClass('gallery-pick');$allgallery.hide();$('div.slideshow-lightbox').show();
					$('#tour_box div.tour_page.gallery').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.newshop').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');$allshop.removeClass('gallery-pick');$bbegshop.addClass('gallery-pick');$allshopdiv.hide();$begshop.show();
					$('#tour_box div.tour_page.newshop').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.checkemail').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');$allshop.removeClass('gallery-pick');$bbegshop.addClass('gallery-pick');$allshopdiv.hide();$begshop.show();
					$('#tour_box div.tour_page.checkemail').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.publish').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.publish').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.prositeboost').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.prositeboost').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.stationery').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.stationery').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.proshop').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.proshop').fadeIn(200);
				});
				
				$('#tour_navigator ul li div.tour_option.prostats').click(function(){
					$alltour.hide();$tb.removeClass('tourselected');
					$(this).addClass('tourselected');
					$('#tour_box div.tour_page.prostats').fadeIn(200);
				});
				
				
				// ------------------------------------------------------------------ //
				// Tour - Photo Gallery
				var $std = $('li.show-standard-gallery');
				var $fla = $('li.show-flash-gallery');
				var $sli = $('li.show-slideshow-gallery');
				var $allgallery = $('div.slideshow-lightbox, div.slideshow-flash, div.slideshow-slideshow');
				var $allgalleryb = $('ul.slideshow-list li');
				
				$('div.slideshow-flash, div.slideshow-slideshow').hide();$std.addClass('gallery-pick');
				
				$std.click(function(){$allgalleryb.removeClass('gallery-pick');$(this).addClass('gallery-pick');$allgallery.hide();$('div.slideshow-lightbox').fadeIn(250);});
				$fla.click(function(){$allgalleryb.removeClass('gallery-pick');$(this).addClass('gallery-pick');$allgallery.hide();$('div.slideshow-flash').fadeIn(250);});
				$sli.click(function(){$allgalleryb.removeClass('gallery-pick');$(this).addClass('gallery-pick');$allgallery.hide();$('div.slideshow-slideshow').fadeIn(250);});
				
				$('ul.slideshow-list li').hover(function() {
					$(this).addClass('gallery-type-hover');
						}, function() {
					$(this).removeClass('gallery-type-hover');
				});
				// ------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				// ------------------------------------------------------------------ //
				// More Take a Tour 
				var $bbegshop = $('li.show-beginner-online-shop');
				var $bstdshop = $('li.show-standard-online-shop');
				var $bproshop = $('li.show-pro-online-shop');
				var $allshop = $('ul.slideshow-list li');
				var $begshop = $('div.beginner-online-shop');
				var $stdshop = $('div.standard-online-shop');
				var $proshop = $('div.pro-online-shop');
				var $allshopdiv = $('div.standard-online-shop, div.pro-online-shop, div.beginner-online-shop');
				
				$proshop.hide();$bbegshop.addClass('gallery-pick');
				$bbegshop.click(function(){$allshop.removeClass('gallery-pick');$(this).addClass('gallery-pick');$allshopdiv.hide();$begshop.fadeIn(250);});
				$bstdshop.click(function(){$allshop.removeClass('gallery-pick');$(this).addClass('gallery-pick');$allshopdiv.hide();$stdshop.fadeIn(250);});
				$bproshop.click(function(){$allshop.removeClass('gallery-pick');$(this).addClass('gallery-pick');$allshopdiv.hide();$proshop.fadeIn(250);});
				
				// Overview pages
				
				$('div.overview-std-icon').click(function(){
					$(this).addClass('clicked');
				});
				// ------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				
				// ------------------------------------------------------------------ //
				// Buy Now 
				 $('a.showfulllist').click(function(){
					$(this).hide();
					$('ul.minimal').hide();
					$('ul.fulllist').fadeIn(300);
					$('a.showminimallist').show();
				 });
				 
				 
				 $('a.showminimallist').click(function(){
					$(this).hide();
					$('ul.fulllist').hide();
					$('ul.minimal').fadeIn(300);
					$('a.showfulllist').show();
				 });
				 // ------------------------------------------------------------------ //
				 // ------------------------------------------------------------------ //
				 
				 
				 
				 // ------------------------------------------------------------------ //
				 // Press Pages  Standard, Pro
				 $("#press-list").idTabs(function(id,list,set){ 
					$("a",set).removeClass("selected") 
					.filter("[@href='"+id+"']",set).addClass("selected"); 
					for(i in list) 
					  $(list[i]).hide(); 
					$(id).fadeIn(); 
					return false; 
				  }); 
				 
				 var $presslist = $("div#press-list ul li div.picon");
				 
				 $("div#press-list ul li div.picon").click(function(){
					$presslist.removeClass('clickedit');
					$(this).addClass('clickedit');													
				 });
				 
				$('div#press-list ul li div.picon').hover(function() {
					$(this).addClass('pressiconhover');
						}, function() {
					$(this).removeClass('pressiconhover');
				});
				 
				 var $presslistt = $("div.press-icon-track div.picon");
				 
				 $("div.press-icon-track div.picon").click(function(){
					$presslistt.removeClass('clickedit');
					$(this).addClass('clickedit');													
				 });
				 
				 $('div.press-icon-track div.picon').hover(function() {
					$(this).addClass('pressiconhover');
						}, function() {
					$(this).removeClass('pressiconhover');
				});
				 
				
				$('a.domorepress').click(function(){
					$('div.press-icon-track').animate({marginLeft: "-608px"}, 500);
					$('div.morepress').fadeOut(300);
					$('div.lesspress').fadeIn(300);
				});
				
				$('a.dolesspress').click(function(){
					$('div.press-icon-track').animate({marginLeft: "0px"}, 500);
					$('div.lesspress').fadeOut(300);
					$('div.morepress').fadeIn(300);
				});
				// ------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				
				// ------------------------------------------------------------------ //
				// News
				$("#news-selector").idTabs(); 
				
				var $hot = $('a.hot-next, a.hot-prev');
				var $hothot = $('div.hot-news-item.one, div.hot-news-item.two');
				 
				$('a.hot-next').click(function(){
					$hothot.hide();
					$('div.hot-news-item.two').fadeIn(400);
					$hot.removeClass('selected');
					$(this).addClass('selected');
				});
				
				$('a.hot-prev').click(function(){
					$hothot.hide();
					$('div.hot-news-item.one').fadeIn(400);
					$hot.removeClass('selected');
					$(this).addClass('selected');
				});
				// ---------------------------------------------------------------- //
				// ------------------------------------------------------------------ //
				
				
				// ------------------------------------------------------------------ //
				// Product Pages - Beginner, Standard Pro  read more's 
				
				$("a.product_expand").toggle(function(){
				$(this).next("div.hiddentext").fadeToggle(500);
				$(this).addClass('clicked');
					}, function(){
				$(this).next("div.hiddentext").fadeToggle(400);
				$(this).removeClass('clicked');
				});
				
				// ------------------------------------------------------------------------- //
				// ------------------------------------------------------------------ //
				
				
				// ------------------------------------------------------------------ //
				// Take a Tour Page
				var $stdbutton = $('li.std-features, span.std-features, a.std-features');
				var $probutton = $('li.pro-features, span.pro-features, a.pro-features');
				
				$('a#show-std-features').click(function(){
					$probutton.removeClass('current');
					$stdbutton.addClass('current');
					$('div.tour-pro').hide();
					$('div.tour-standard').fadeIn();									
				});
				
				$('a#show-pro-features').click(function(){
					$stdbutton.removeClass('current');
					$probutton.addClass('current');
					$('div.tour-standard').hide();
					$('div.tour-pro').fadeIn();									
				});
				// ------------------------------------------------------------------------ //
				// ------------------------------------------------------------------ //
				
				
				// ------------------------------------------------------------------ //
				// Find Out More page
				
				
				var awardcs8 = {sensitivity: 3,interval: 200,over: openpro1,timeout: 200,out: closepro1};
				var awardcs1 = {sensitivity: 3,interval: 200,over: openpro2,timeout: 200,out: closepro2};
				var awardcs2 = {sensitivity: 3,interval: 200,over: openpro3,timeout: 200,out: closepro3};
				var awardcs3 = {sensitivity: 3,interval: 200,over: openpro4,timeout: 200,out: closepro4};
				var awardcs4 = {sensitivity: 3,interval: 200,over: openpro5,timeout: 200,out: closepro5};
				var awardcs5 = {sensitivity: 3,interval: 200,over: openpro6,timeout: 200,out: closepro6};
				var awardcs6 = {sensitivity: 3,interval: 200,over: openpro7,timeout: 200,out: closepro7};
				var awardcs7 = {sensitivity: 3,interval: 200,over: openpro8,timeout: 200,out: closepro8};
				
				$("div.award.cs8").hoverIntent(awardcs8);
				$("div.award.cs1").hoverIntent(awardcs1);
				$("div.award.cs2").hoverIntent(awardcs2);
				$("div.award.cs3").hoverIntent(awardcs3);
				$("div.award.cs4").hoverIntent(awardcs4);
				$("div.award.cs5").hoverIntent(awardcs5);
				$("div.award.cs6").hoverIntent(awardcs6);
				$("div.award.cs7").hoverIntent(awardcs7);
				
				function openpro1(){ $('div.awardpopup.ccs8').fadeIn(200);}
				function closepro1(){ $('div.awardpopup.ccs8').fadeOut(400);}
				
				function openpro2(){ $('div.awardpopup.ccs1').fadeIn(200);}
				function closepro2(){ $('div.awardpopup.ccs1').fadeOut(400);}
				
				function openpro3(){ $('div.awardpopup.ccs2').fadeIn(200);}
				function closepro3(){ $('div.awardpopup.ccs2').fadeOut(400);}
				
				function openpro4(){ $('div.awardpopup.ccs3').fadeIn(200);}
				function closepro4(){ $('div.awardpopup.ccs3').fadeOut(400);}
				
				function openpro5(){ $('div.awardpopup.ccs4').fadeIn(200);}
				function closepro5(){ $('div.awardpopup.ccs4').fadeOut(400);}
				
				function openpro6(){ $('div.awardpopup.ccs5').fadeIn(200);}
				function closepro6(){ $('div.awardpopup.ccs5').fadeOut(400);}
				
				function openpro7(){ $('div.awardpopup.ccs6').fadeIn(200);}
				function closepro7(){ $('div.awardpopup.ccs6').fadeOut(400);}
				
				function openpro8(){ $('div.awardpopup.ccs7').fadeIn(200);}
				function closepro8(){ $('div.awardpopup.ccs7').fadeOut(400);}
				// ----------------------------------------------------------- //
				// ------------------------------------------------------------------ //
				
				
				
				// Some extended Sample Websites functions
				// Slide the sample website list to the left
				$('li.GoPage1').click(function(){
					// Check whether the list is moving, if it is, don't allow the click
					if ($('ul.websitelist').is(':animated'))
					{
						// If it is moving already, don't do anything
					}
					// If it isn't moving, we're free to slide it to the left
					else {
							$('ul.sampleContControl li').removeClass('turnonpage');
							$(this).addClass('turnonpage');
							// Move the list 820px to the left
							$list.animate({marginLeft: "0px"}, { 
											"duration": 1200, 
											"easing": "easeInOutCirc" 
											});
										return false;
						
							
						}	
						
				});
				
				$('li.GoPage2').click(function(){
					// Check whether the list is moving, if it is, don't allow the click
					if ($('ul.websitelist').is(':animated'))
					{
						// If it is moving already, don't do anything
					}
					// If it isn't moving, we're free to slide it to the left
					else {
							$('ul.sampleContControl li').removeClass('turnonpage');
							$(this).addClass('turnonpage');
							// Move the list 820px to the left
							$list.animate({marginLeft: "-780px"}, { 
											"duration": 1200, 
											"easing": "easeInOutCirc" 
											});
										return false;
						
							
						}	
						
				});
				
				$('li.GoPage3').click(function(){
					// Check whether the list is moving, if it is, don't allow the click
					if ($('ul.websitelist').is(':animated'))
					{
						// If it is moving already, don't do anything
					}
					// If it isn't moving, we're free to slide it to the left
					else {
							$('ul.sampleContControl li').removeClass('turnonpage');
							$(this).addClass('turnonpage');
							// Move the list 820px to the left
							$list.animate({marginLeft: "-1560px"}, { 
											"duration": 1200, 
											"easing": "easeInOutCirc" 
											});
										return false;
						
							
						}	
						
				});
				
				$('li.GoPage4').click(function(){
					// Check whether the list is moving, if it is, don't allow the click
					if ($('ul.websitelist').is(':animated'))
					{
						// If it is moving already, don't do anything
					}
					// If it isn't moving, we're free to slide it to the left
					else {
							$('ul.sampleContControl li').removeClass('turnonpage');
							$(this).addClass('turnonpage');
							// Move the list 820px to the left
							$list.animate({marginLeft: "-2340px"}, { 
											"duration": 1200, 
											"easing": "easeInOutCirc" 
											});
										return false;
						
							
						}	
						
				});
				
				$('li.GoPage5').click(function(){
					// Check whether the list is moving, if it is, don't allow the click
					if ($('ul.websitelist').is(':animated'))
					{
						// If it is moving already, don't do anything
					}
					// If it isn't moving, we're free to slide it to the left
					else {

							// Move the list 820px to the left
							$list.animate({marginLeft: "-3280px"}, { 
											"duration": 1200, 
											"easing": "easeInOutCirc" 
											});
										return false;
						
							
						}	
						
				});
				
				
				
				
				
});
			
			

			

