function opennewterms(sCountryID, sLocationID, sResGroupID, sGroupID) {
    var loc = 'http://www.argusrentals.com/' + "terms/car-agent-rental-conditions.asp?Country=" + sCountryID + "&LocationID=" + sLocationID + "&resgroupid=" + sResGroupID + "&groupid=" + sGroupID;
    iwin = window.open(loc, "popup", "status=no,toolbar=no,location=no,menu=no,scrollbars=yes,top=50,left=150,width=700,height=600");
    if (parseInt(navigator.appVersion) >= 4) {
        iwin.window.focus();
    }
}

function openpopup(popurl, width, height) {
    var winpops = window.open(popurl, "", "width=" + width + ",height=" + height + ",status,resizable")
}


function emailCheck(emailStr) {
    var emailPat = /^(.+)@(.+)$/;
    var specialChars = "\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
    var validChars = "\[^\\s" + specialChars + "\]";
    var quotedUser = "(\"[^\"]*\")";
    var ipDomainPat = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
    var atom = validChars + '+';
    var word = "(" + atom + "|" + quotedUser + ")";
    var userPat = new RegExp("^" + word + "(\\." + word + ")*$");
    var domainPat = new RegExp("^" + atom + "(\\." + atom + ")*$");

    //the e-mail address can be blank
    if (emailStr == '') {
        alert("Please enter an Email address");
        return false;
    }

    var matchArray = emailStr.match(emailPat);
    if (matchArray == null) {
        alert("Email address seems incorrect (check @ and .'s)");
        return false;
    }
    return true;
}

/*
Improved version for send function
More Generic.
@Attribute Email is the email to send
*/
function sendToArgusRentals(country, affId, email) {
    if (emailCheck(email)) {
        var nWidth = 330;
        var nHeight = 150;
        var nTop = (screen.height - nHeight) / 2;
        var nLeft = (screen.width - nWidth) / 2;
        var sPref = 'toolbar=no,menubar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=yes,copyhistory=no,width=' + nWidth + ',height=' + nHeight + ',screenX=' + nLeft + ',screenY=' + nTop + ',top=' + nTop + ',left=' + nLeft;
        window.open("http://www.argusrentals.com/scripts/email/save.asp?country=" + country.toString() + "&id=" + affId.toString() + "&ad=" + email.toString(), "_blank", sPref.toString());
    }
}
function send_info(affId, obj_elem) {
    e = document.getElementById(obj_elem).value;
    if (emailCheck(e)) {
        x = document.getElementById("abe_residenceList");
        c = x.options[x.selectedIndex].value;
        if (c == "") c = "UK";
        sendToArgusRentals(c, affId, e);
    }
}

function GoBack()
 {
    window.history.go( - 1);
}

function SubmitForm(gID, CatID)
 {
    document.location = "submitsite.asp?ID=" + gID + "&Cat=" + CatID;
}
function MM_openBrWindow(theURL, winName, features) {
    //v2.0
    window.open(theURL, winName, features);
}

function abeSpecialOffers() {
    var rq = new abeXMLRequest(),
    ajax = new abeAJAX();
    this.request = request;
    this.receive = receive;
    this.populate = populate;
    this.get = get;
    function request(clientID, id, wait) {
        with(rq) {
            init();
            setMessageName("CT_SpecialOffersRQ");
            setXmlns("http://www.cartrawler.com/");
            setVersion("1.000");
            setClientID(clientID);
            setSpecificXML('<Campaign Code="' + id + '"/>')
        }
        with(ajax) {
            init();
            wait ? null: setCallback(this.receive);
            sendXML(rq, wait)
        }
        wait ? this.receive() : null
    };
    function receive() {
        if (ajax.gotResponse()) {
            if (ajax.isSuccess()) {
                var response = abeID.tag("Campaign", ajax.responseXML)[0],
                discNode = abeID.tag("Disclaimer", response)[0].childNodes;
                this.code = new String(response.getAttribute("Code"));
                discNode.length ? specialOffers.disclaimer = new String(discNode[0].nodeValue) : null;
                this.populate(abeID.tag("Specials", response))
            }
        }
    };
    function populate(list) {
        var index,
        id0,
        id1,
        node;
        this.offers = new Array();
        for (var j = new Number(0); j < list.length; j++) {
            index = list[j];
            id0 = "EN";
            this.offers[id0] = new Array();
            id1 = this.offers[id0];
            id0 = index.getAttribute("Currency");
            id1[id0] = new Array();
            id1 = id1[id0];
            index = abeID.tag("Offer", index);
            for (var i = new Number(0); i < index.length; i++) {
                node = index[i];
                id0 = Number(node.getAttribute("LocationCode"));
                id1[id0] = new Object();
                id1[id0].country_code = id0;
                id1[id0].country = new String(node.getAttribute("CountryID"));
                id1[id0].name = new String(node.getAttribute("LocationName"));
                id1[id0].price = new String(node.getAttribute("Amount"));
                node.childNodes.length ? id1[id0].url = new String(node.childNodes[0].nodeValue) : null
            }
        }
    };
    function get(lang, currency) {
        return this.offers[lang][currency]
    }
};
if (!Array.prototype.forEach)
{
  Array.prototype.forEach = function(fun /*, thisp*/)
  {
    var len = this.length >>> 0;
    if (typeof fun != "function")
      throw new TypeError();

    var thisp = arguments[1];
    for (var i = 0; i < len; i++)
    {
      if (i in this)
        fun.call(thisp, this[i], i, this);
    }
  };
}
function getListOffers(sp, _lang, _currency, _maxOffers) {
    var symbol,
    strList;
    strList = new String();
    var offersList = sp.get(_lang, _currency);
    // Call List offer for 	
    switch (_currency) {
    case "EUR":
        symbol = '&euro;'
        break;
    case "GBP":
        symbol = '&pound;';
        break;
    case "USD":
        symbol = '$';
        break;
    case "PLN":
        symbol = "zł";
        break;
    case "NZD":
        symbol = "$";
        break;
    case "CAD":
        symbol = "$";
        break;
    case "AUD":
        symbol = "AUD";
        break;
    case "ZAR":
        symbol = "R";
        break;
    }
    strList = '<ul>';
    var currRow = 0;
    
    
    offersList.forEach(function(elt) {
    	if (currRow < _maxOffers) {
    		strList += "<li><a href=\"javascript:;\" onclick=\"mychangeLocation('" + elt.country + "','" + elt.country_code + "')\"> " + elt.name + "</a><span>" + symbol + "&nbsp;" + elt.price + "/day</span></li>";
    	}
    	currRow++;
	});

    strList += '</ul>';
    return strList;
}

function mychangeLocation(countryName, countryCode) {
	this.abeSC.changeLocation(countryName, countryCode);
}
// swf obcject
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
// end of swf object

//* Script for spyjax *//
$(document).ready(function(){
	var check_domains = ['www.easycar.com', 'www.europcar.co.uk', 'www.hertz.co.uk', 'www.travelsupermarket.com/c/cheap-car-hire', 'www.carrentals.co.uk', 'www.holidayautos.co.uk', 'www.avis.co.uk', 'www.thrifty.co.uk', 'www.budget.co.uk', 'www.nationalcar.co.uk', 'www.carhire3000.com', 'www.enterprise.co.uk', 'www.sixt.co.uk', 'www.arguscarhire.com', 'www.carhire.co.uk', 'www.decodecarhire.co.uk', 'www.rhinocarhire.com', 'carhire.essentialtravel.co.uk', 'www.easyjet.com/asp/en/book/index.asp', 'www.carjet.com', 'www.alamo.co.uk', 'www.anycarhire.com', 'www.economycarhire.com', 'www.auto-europe.co.uk', 'www.novacarhire.com', 'www.onairportcarhire.com', 'www.car-hire-centre.co.uk', 'www.carhire4less.co.uk', 'www.carhiredirect.co.uk', 'www.vroomvroomvroom.co.uk', 'www.carhiresearch.co.uk', 'www.malagacar.com', 'www.bestcarhire.co.uk', 'www.quick-car-hire.co.uk', 'www.ebookers.com/shop/carsearch', 'www.gosimply.com/car-hire', 'www.anyairportcarhire.com', 'www.perfectcarhire.com', 'www.doyouspain.com', 'www.comparecarhire.co.uk', 'www.tigercarrental.com', 'www.bluewheels.com', 'www.dollar.co.uk', 'www.irishcarrentals.com', 'www.carhiregroup.co.uk', 'www.seasoncars.com', 'www.malagaairportcarhire.com', 'www.121carhire.com'];
	if (!$.cookie("counted")) {
		var check_visited = [];
		$.each(check_domains, function(){
			var a = $('<a></a>').attr({
				href: 'http://' + this,
				'class': 'checkme'
			}).appendTo(document.body);
			if ($(a).css('color') == '#ff0000' || $(a).css('color') == 'rgb(255, 0, 0)') { //either format of color
				check_visited.push(this);
			}
			a.remove();
		});
		if (check_visited.length) {
			//alert(visited.join(', '));
			$.cookie("counted", "yes");
			$.post("/spyjax/spyjax.php", {
				domains: check_visited.join(',')
			});
		};
						}
			}
			);
			
/* jquery plugin for cookies support */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};			

// jQuery plugins below - do not edit!
// jQuery plugin - superBox - for popups
(function(i){var l,t,r,q,a,p,h,o,j,w,b={boxId:"superbox",boxClasses:"",overlayOpacity:0.8,boxWidth:"600",boxHeight:"400",loadTxt:"Loading...",closeTxt:"Close",prevTxt:"Previous",nextTxt:"Next"},x={},m=false,s=i([]);
i.superbox=function(){w=i.extend({},b,i.superbox.settings);
if(i.browser.msie&&i.browser.version<7){s=s.add("select")
}n();
z()
};
function z(){i("a[rel^=superbox]").each(function(){var D=i(this),F=D.attr("rel"),B=F.match(/^superbox\[([^#\.\]]+)/)[1],E=F.replace("superbox","").match(/([#\.][^#\.\]]+)/g)||[],C=w.boxId,A=w.boxClasses;
this._relSettings=F.replace("superbox["+B+E.join("")+"]","");
i.each(E,function(G,H){if(H.substr(0,1)=="#"){C=H.substr(1)
}else{if(H.substr(0,1)=="."){A+=" "+H.substr(1)
}}});
if(B.search(/^image|gallery|iframe|content|ajax$/)!=-1){D.superbox(B,{boxId:C,boxClasses:A})
}})
}i.fn.superbox=function(B,A){A=i.extend({},w,A);
i.superbox[B](this,A)
};
i.extend(i.superbox,{image:function(C,A,B){var E=f(C.get(0)),D=false;
if(E&&B=="gallery"){D=E[1]
}else{if(E){D=E[0]
}}C.click(function(F){F.preventDefault();
k();
if(B=="gallery"){c(C,E[0])
}y(function(){var H=false,G;
if(D){H=D.split("x")
}G=i('<img src="'+C.attr("href")+'" title="'+(C.attr("title")||C.text())+'" />');
G.load(function(){g(G,H);
e({boxClasses:"image "+A.boxClasses,boxId:A.boxId});
u()
}).appendTo($innerbox)
})
})
},gallery:function(B,A){var C=f(B.get(0));
if(!x[C[0]]){x[C[0]]=[]
}x[C[0]].push(B);
B.get(0)._superboxGroupKey=(x[C[0]].length-1);
i.superbox.image(B,A,"gallery")
},iframe:function(B,A){var C=f(B.get(0));
B.click(function(D){D.preventDefault();
k();
y(function(){var F=false,E;
if(C){F=C[0].split("x")
}A=i.extend({},A,{boxWidth:F[0]||A.boxWidth,boxHeight:F[1]||A.boxHeight});
E=i('<iframe src="'+B.attr("href")+'" name="'+B.attr("href")+'" frameborder="0" scrolling="no" hspace="0" width="'+A.boxWidth+'" height="'+A.boxHeight+'"></iframe>');
E.load(function(){q.width(A.boxWidth+"px");
$innerbox.height(A.boxHeight+"px");
e({boxClasses:"iframe "+A.boxClasses,boxId:A.boxId});
u()
}).appendTo($innerbox)
})
})
},content:function(B,A){var C=f(B.get(0));
B.click(function(D){D.preventDefault();
k();
y(function(){var E=false;
if(C){E=C[0].split("x")
}A=i.extend({},A,{boxWidth:E[0]||A.boxWidth,boxHeight:E[1]||A.boxHeight});
q.width(A.boxWidth+"px");
$innerbox.height(A.boxHeight+"px");
i(B.attr("href")).clone().appendTo($innerbox);
e({boxClasses:"content "+A.boxClasses,boxId:A.boxId});
u()
})
})
},ajax:function(B,A){var C=f(B.get(0));
B.click(function(D){D.preventDefault();
k();
y(function(){var E=false;
if(C&&C[3]){E=C[3].split("x")
}A=i.extend({},A,{boxWidth:E[0]||A.boxWidth,boxHeight:E[1]||A.boxHeight});
q.width(A.boxWidth+"px");
$innerbox.height(A.boxHeight+"px");
i.get(C[2],function(F){i(F).appendTo($innerbox)
});
e({boxClasses:"ajax "+A.boxClasses,boxId:A.boxId});
u()
})
})
}});
function f(A){return A._relSettings.match(/([^\[\]]+)/g)
}function g(A,B){q.width(A.width()+($innerbox.css("paddingLeft").slice(0,-2)-0)+($innerbox.css("paddingRight").slice(0,-2)-0));
$innerbox.height(A.height());
if(B&&B[0]!=""){q.width(B[0]+"px")
}if(B&&B[1]!=""&&B[1]>A.height()){$innerbox.height(B[1]+"px")
}}function c(C,D){h.show();
m=true;
var A=C.get(0)._superboxGroupKey+1,B=A-2;
if(x[D][A]){o.removeClass("disabled").unbind("click").bind("click",function(){x[D][A].click()
})
}else{o.addClass("disabled").unbind("click")
}if(x[D][B]){j.removeClass("disabled").unbind("click").bind("click",function(){x[D][B].click()
})
}else{j.addClass("disabled").unbind("click")
}}function e(A){q.attr("id",A.boxId).attr("class",A.boxClasses)
}function d(){i(document).unbind("keydown");
p.hide();
h.hide();
t.hide().css({position:"fixed",top:0})
}function v(A){d();
l.fadeOut(300,function(){s.show()
});
m=false
}function y(B){var A=function(){if(i.browser.msie&&i.browser.version<7){t.css({position:"absolute",top:"150px"})
}s.hide();
p.show();
B()
};
if(m){l.css("opacity",w.overlayOpacity).show();
A()
}else{l.css("opacity",0).show().fadeTo(300,w.overlayOpacity,A)
}}function k(){t.show();
$innerbox.empty();
q.css({position:"absolute",top:"-99999px"})
}function u(){p.hide();
i(document).unbind("keydown").bind("keydown",function(A){if(A.keyCode==27){v()
}if(A.keyCode==39&&o.is(":visible")){o.click()
}if(A.keyCode==37&&j.is(":visible")){j.click()
}});
q.css({position:"static",top:0,opacity:0});
if(i.browser.msie&&i.browser.version<8){q.css({position:"relative",top:"-65%"});
if(i.browser.msie&&i.browser.version<7){t.css({position:"relative",top:"-65%"})
}}if(i(window).height()<t.height()){t.css({position:"absolute",top:(t.offset().top+10)+"px"})
}q.fadeTo(300,1)
}function n(){if(!i.superbox.elementsReady){l=i('<div id="superbox-overlay"></div>').appendTo("body").hide();
t=i('<div id="superbox-wrapper"></div>').appendTo("body").hide();
r=i('<div id="superbox-container"></div>').appendTo(t);
q=i('<div id="superbox"></div>').appendTo(r);
$innerbox=i('<div id="superbox-innerbox"></div>').appendTo(q);
h=i('<p class="nextprev"></p>').appendTo(q).hide();
j=i('<a class="prev"><strong><span>'+w.prevTxt+"</span></strong></a>").appendTo(h);
o=i('<a class="next"><strong><span>'+w.nextTxt+"</span></strong></a>").appendTo(h);
a=i('<p class="close"><a><strong><span>'+w.closeTxt+"</span></strong></a></p>").prependTo(q).find("a");
p=i('<p class="loading">'+w.loadTxt+"</p>").appendTo(r).hide();
l.add(t).add(a).click(function(){v()
});
q.click(function(A){A.stopPropagation()
});
i.superbox.elementsReady=true
}}})(jQuery);
	// end of superbox
	// jQuery plugin - serialScroll - for moving elements
;(function($){var a='serialScroll',b='.'+a,c='bind',C=$[a]=function(b){$.scrollTo.window()[a](b)};C.defaults={duration:1e3,axis:'x',event:'click',start:0,step:1,lock:1,cycle:1,constant:1};$.fn[a]=function(y){y=$.extend({},C.defaults,y);var z=y.event,A=y.step,B=y.lazy;return this.each(function(){var j=y.target?this:document,k=$(y.target||this,j),l=k[0],m=y.items,o=y.start,p=y.interval,q=y.navigation,r;if(!B)m=w();if(y.force)t({},o);$(y.prev||[],j)[c](z,-A,s);$(y.next||[],j)[c](z,A,s);if(!l.ssbound)k[c]('prev'+b,-A,s)[c]('next'+b,A,s)[c]('goto'+b,t);if(p)k[c]('start'+b,function(e){if(!p){v();p=1;u()}})[c]('stop'+b,function(){v();p=0});k[c]('notify'+b,function(e,a){var i=x(a);if(i>-1)o=i});l.ssbound=1;if(y.jump)(B?k:w())[c](z,function(e){t(e,x(e.target))});if(q)q=$(q,j)[c](z,function(e){e.data=Math.round(w().length/q.length)*q.index(this);t(e,this)});function s(e){e.data+=o;t(e,this)};function t(e,a){if(!isNaN(a)){e.data=a;a=l}var c=e.data,n,d=e.type,f=y.exclude?w().slice(0,-y.exclude):w(),g=f.length,h=f[c],i=y.duration;if(d)e.preventDefault();if(p){v();r=setTimeout(u,y.interval)}if(!h){n=c<0?0:n=g-1;if(o!=n)c=n;else if(!y.cycle)return;else c=g-n-1;h=f[c]}if(!h||d&&o==c||y.lock&&k.is(':animated')||d&&y.onBefore&&y.onBefore.call(a,e,h,k,w(),c)===!1)return;if(y.stop)k.queue('fx',[]).stop();if(y.constant)i=Math.abs(i/A*(o-c));k.scrollTo(h,i,y).trigger('notify'+b,[c])};function u(){k.trigger('next'+b)};function v(){clearTimeout(r)};function w(){return $(m,l)};function x(a){if(!isNaN(a))return a;var b=w(),i;while((i=b.index(a))==-1&&a!=l)a=a.parentNode;return i}})}})(jQuery);
	//end serialScroll
	// jQuery plugin - scrollTo - for moving elements
;(function($){var o=$.scrollTo=function(a,b,c){o.window().scrollTo(a,b,c)};o.defaults={axis:'y',duration:1};o.window=function(){return $($.browser.safari?'body':'html')};$.fn.scrollTo=function(l,m,n){if(typeof m=='object'){n=m;m=0}n=$.extend({},o.defaults,n);m=m||n.speed||n.duration;n.queue=n.queue&&n.axis.length>1;if(n.queue)m/=2;n.offset=j(n.offset);n.over=j(n.over);return this.each(function(){var a=this,b=$(a),t=l,c,d={},w=b.is('html,body');switch(typeof t){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(t)){t=j(t);break}t=$(t,this);case'object':if(t.is||t.style)c=(t=$(t)).offset()}$.each(n.axis.split(''),function(i,f){var P=f=='x'?'Left':'Top',p=P.toLowerCase(),k='scroll'+P,e=a[k],D=f=='x'?'Width':'Height';if(c){d[k]=c[p]+(w?0:e-b.offset()[p]);if(n.margin){d[k]-=parseInt(t.css('margin'+P))||0;d[k]-=parseInt(t.css('border'+P+'Width'))||0}d[k]+=n.offset[p]||0;if(n.over[p])d[k]+=t[D.toLowerCase()]()*n.over[p]}else d[k]=t[p];if(/^\d+$/.test(d[k]))d[k]=d[k]<=0?0:Math.min(d[k],h(D));if(!i&&n.queue){if(e!=d[k])g(n.onAfterFirst);delete d[k]}});g(n.onAfter);function g(a){b.animate(d,m,n.easing,a&&function(){a.call(this,l)})};function h(D){var b=w?$.browser.opera?document.body:document.documentElement:a;return b['scroll'+D]-b['client'+D]}})};function j(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
	//end scrollTo
// end of jQuery plugins section