var qsParam = new Array();

function validateProviderSignupOptions() {
        var ltype = document.getElementById('ltype');
        var type = document.getElementById('type');
		qs();

        if (! (ltype.selectedIndex && type.selectedIndex)) {
           alert('Please select a package and listing type first');
        } else {
            if (qsParam['cobrand']) {
	           	document.location='/signup/?type=' + type.options[type.selectedIndex].value + '&ltype=' + ltype.options[ltype.selectedIndex].value + '&cobrand=' + qsParam['cobrand'];
			} else {
				document.location='/signup/?type=' + type.options[type.selectedIndex].value + '&ltype=' + ltype.options[ltype.selectedIndex].value;
			}
        }
        return false;
}

function initializeProviderSignupOptions() {
        var ltype = document.getElementById('ltype');
        var type = document.getElementById('type');
		qs();
		
		for (var i = 0; i < type.options.length; i++) {
			if (qsParam['type'] && type.options[i].value == qsParam['type']) {
				type.selectedIndex = i;
			}
		}
		
		for (var i = 0; i < ltype.options.length; i++) { 
		    if (qsParam['ltype'] && ltype.options[i].value == qsParam['ltype']) {
				ltype.selectedIndex = i;
			}
		}
}

function qs() {
	var query = window.location.search.substring(1);
	var parms = query.split('&');
	for (var i=0; i<parms.length; i++) {
		var pos = parms[i].indexOf('=');
		if (pos > 0) {
			var key = parms[i].substring(0,pos);
			var val = parms[i].substring(pos+1);
			qsParam[key] = val;
		}
	}
} 

var email_ajax_url = '/wp-content/plugins/wp-email/wp-email.php';
var email_max_allowed = '5';
var email_verify = '';
var email_text_error = 'The Following Error Occurs:';
var email_text_name_invalid = '- Your Name is empty/invalid';
var email_text_email_invalid = '- Your Email is empty/invalid';
var email_text_remarks_invalid = '- Your Remarks is invalid';
var email_text_friend_names_empty = '- Friend Name(s) is empty';
var email_text_friend_name_invalid = '- Friend Name is empty/invalid:';
var email_text_max_friend_names_allowed = '- Maximum 5 Friend Name(s) allowed';
var email_text_friend_emails_empty = '- Friend Email(s) is empty';
var email_text_friend_email_invalid = '- Friend Email is invalid:';
var email_text_max_friend_emails_allowed = '- Maximum 5 Friend Email(s) allowed';
var email_text_friends_tally = '- Friend Name(s) count does not tally with Friend Email(s) count';
var email_text_image_verify_empty = '- Image Verification is empty';

var polls_ajax_url = '/wp-content/plugins/wp-polls/wp-polls.php';
var polls_text_wait = 'Your last request is still being processed. Please wait a while ...';
var polls_text_valid = 'Please choose a valid poll answer.';
var polls_text_multiple = 'Maximum number of choices allowed:';
var poll_show_loading = 1;
var poll_show_fading = 1;


var ratings_plugin_url = '/wp-content/plugins/wp-postratings';
var ratings_ajax_url = '/wp-content/plugins/wp-postratings/wp-postratings.php';
var ratings_text_wait = 'Please rate only 1 post at a time.';
var ratings_image = 'thumbs_gg';
var ratings_image_ext = 'gif';
var ratings_max = 2;
var ratings_1_mouseover_image = new Image();
ratings_1_mouseover_image.src = ratings_plugin_url + "/images/" + ratings_image + "/rating_1_over.gif";
var ratings_2_mouseover_image = new Image();
ratings_2_mouseover_image.src = ratings_plugin_url + "/images/" + ratings_image + "/rating_2_over.gif";
var ratings_show_loading = 1;
var ratings_show_fading = 1;
var ratings_custom = 1;

// jquery.jgrowl_minimized.js
(function($){$.jGrowl=function(m,o){if($('#jGrowl').size()==0)$('<div id="jGrowl"></div>').addClass($.jGrowl.defaults.position).appendTo('body');$('#jGrowl').jGrowl(m,o);};$.fn.jGrowl=function(m,o){if($.isFunction(this.each)){var args=arguments;return this.each(function(){var self=this;if($(this).data('jGrowl.instance')==undefined){$(this).data('jGrowl.instance',new $.fn.jGrowl());$(this).data('jGrowl.instance').startup(this);}
if($.isFunction($(this).data('jGrowl.instance')[m])){$(this).data('jGrowl.instance')[m].apply($(this).data('jGrowl.instance'),$.makeArray(args).slice(1));}else{$(this).data('jGrowl.instance').notification(m,o);}});};};$.extend($.fn.jGrowl.prototype,{defaults:{header:'',sticky:false,position:'top-right',glue:'after',theme:'default',corners:'10px',check:500,life:3000,speed:'normal',easing:'swing',closer:true,log:function(e,m,o){},beforeOpen:function(e,m,o){},open:function(e,m,o){},beforeClose:function(e,m,o){},close:function(e,m,o){},animateOpen:{opacity:'show'},animateClose:{opacity:'hide'}},element:null,interval:null,notification:function(message,o){var self=this;var o=$.extend({},this.defaults,o);o.log.apply(this.element,[this.element,message,o]);var notification=$('<div class="jGrowl-notification"><div class="close">&times;</div><div class="header">'+o.header+'</div><div class="jGrowlMessage">'+message+'</div></div>').data("jGrowl",o).addClass(o.theme).children('div.close').bind("click.jGrowl",function(){$(this).unbind('click.jGrowl').parent().trigger('jGrowl.beforeClose').animate(o.animateClose,o.speed,o.easing,function(){$(this).trigger('jGrowl.close').remove();});}).parent();(o.glue=='after')?$('div.jGrowl-notification:last',this.element).after(notification):$('div.jGrowl-notification:first',this.element).before(notification);$(notification).bind("mouseover.jGrowl",function(){$(this).data("jGrowl").pause=true;}).bind("mouseout.jGrowl",function(){$(this).data("jGrowl").pause=false;}).bind('jGrowl.beforeOpen',function(){o.beforeOpen.apply(self.element,[self.element,message,o]);}).bind('jGrowl.open',function(){o.open.apply(self.element,[self.element,message,o]);}).bind('jGrowl.beforeClose',function(){o.beforeClose.apply(self.element,[self.element,message,o]);}).bind('jGrowl.close',function(){o.close.apply(self.element,[self.element,message,o]);}).trigger('jGrowl.beforeOpen').animate(o.animateOpen,o.speed,o.easing,function(){$(this).data("jGrowl").created=new Date();}).trigger('jGrowl.open');if($.fn.corner!=undefined)$(notification).corner(o.corners);if($('div.jGrowl-notification:parent',this.element).size()>1&&$('div.jGrowl-closer',this.element).size()==0&&this.defaults.closer!=false){$('<div class="jGrowl-closer">[ close all ]</div>').addClass(this.defaults.theme).appendTo(this.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){$(this).siblings().children('div.close').trigger("click.jGrowl");if($.isFunction(self.defaults.closer))self.defaults.closer.apply($(this).parent()[0],[$(this).parent()[0]]);});};},update:function(){$(this.element).find('div.jGrowl-notification:parent').each(function(){if($(this).data("jGrowl")!=undefined&&$(this).data("jGrowl").created!=undefined&&($(this).data("jGrowl").created.getTime()+$(this).data("jGrowl").life)<(new Date()).getTime()&&$(this).data("jGrowl").sticky!=true&&($(this).data("jGrowl").pause==undefined||$(this).data("jGrowl").pause!=true)){$(this).children('div.close').trigger('click.jGrowl');}});if($(this.element).find('div.jGrowl-notification:parent').size()<2){$(this.element).find('div.jGrowl-closer').animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){$(this).remove();});};},startup:function(e){this.element=$(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){jQuery(e).data('jGrowl.instance').update();},this.defaults.check);if($.browser.msie&&parseInt($.browser.version)<7)$(this.element).addClass('ie6');},shutdown:function(){$(this.element).removeClass('jGrowl').find('div.jGrowl-notification').remove();clearInterval(this.interval);}});$.jGrowl.defaults=$.fn.jGrowl.prototype.defaults;})(jQuery);

function openPopup() {
	$.jGrowl.defaults.position = 'top-right';
	
	thePopup = $.jGrowl("<p>Please help us improve our site to serve you better.</p><p>3 quick questions... only 30 seconds</p><p><img src=\"/NEW/images/pop_yes_btn.gif\" border=\"0\" onclick=\"closePopup('gilbert-guide-site-survey');\" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"/NEW/images/pop_no_btn.gif\" border=\"0\" onclick=\"closePopup(0);\" /></p>", { 
		sticky: true,
		easing: 'easeInBack',
		speed: 1000,
		header: "Gilbert Guide Needs Your Feedback",
		beforeClose: function(e,m) {
			$.get("/wp-content/plugins/satisfiedtoast/ajax/close.php");
		}
	} );	
}

function closePopup(tehAction) {
	if (tehAction != 0) {
	  window.open('/ajax/' + tehAction + '.php','survey','location=0,status=0,scrollbars=0,width=540,height=760');
		$.get("/wp-content/plugins/satisfiedtoast/ajax/close.php", { action: tehAction }, function() {} );
	} else {
		$.get("/wp-content/plugins/satisfiedtoast/ajax/close.php");
	}
	$("div.jGrowl").css("display", "none");
}

// sharethis.js
//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006-2007 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('5 1w={1s:\'1.11\'};4 $N(6){2(6!=19)};4 $b(6){7(!$N(6))2 Z;7(6.X)2\'14\';5 b=I 6;7(b==\'q\'&&6.1p){P(6.1d){n 1:2\'14\';n 3:2(/\\S/).1j(6.1c)?\'1k\':\'1v\'}}7(b==\'q\'||b==\'4\'){P(6.1b){n L:2\'1x\';n 1q:2\'1o\';n j:2\'1n\'}7(I 6.D==\'1l\'){7(6.1m)2\'1r\';7(6.15)2\'a\'}}2 b};4 $F(){5 t={};m(5 i=0;i<a.D;i++){m(5 c z a[i]){5 y=a[i][c];5 w=t[c];7(w&&$b(y)==\'q\'&&$b(w)==\'q\')t[c]=$F(w,y);R t[c]=y}}2 t};5 $f=4(){5 k=a;7(!k[1])k=[9,k[0]];m(5 c z k[1])k[0][c]=k[1][c];2 k[0]};5 $x=4(){m(5 i=0,l=a.D;i<l;i++){a[i].f=4(G){m(5 g z G){7(!9.d[g])9.d[g]=G[g];7(!9[g])9[g]=$x.W(g)}}}};$x.W=4(g){2 4(10){2 9.d[g].J(10,L.d.1t.1u(a,1))}};$x(1y,L,1f,1g);4 $1e(6){2!!(6||6===0)};4 $1i(6,1a){2 $N(6)?6:1a};4 $12(M,17){2 16.1h(16.12()*(17-M+1)+M)};4 $1W(){2 r 1X().1V()};4 $1U(O){1Z(O);1S(O);2 v};5 Q=4(6){6=6||{};6.f=$f;2 6};5 1T=r Q(8);5 1Y=r Q(h);h.Y=h.20(\'Y\')[0];8.V=!!(h.24);7(8.25)8.22=8[8.23?\'21\':\'18\']=B;R 7(h.1R&&!h.1P&&!1F.1z)8.C=8[8.V?\'1G\':\'1Q\']=B;R 7(h.1E!=v)8.1D=B;8.1A=8.C;1B.f=$f;7(I A==\'19\'){5 A=4(){};7(8.C)h.1C("1H");A.d=(8.C)?8["[[1I.d]]"]:{}}A.d.X=4(){};7(8.18)1N{h.1O("1M",Z,B)}1L(e){};5 j=4(s){5 u=4(){2(a[0]!==v&&9.T&&$b(9.T)==\'4\')?9.T.J(9,a):9};$f(u,9);u.d=s;u.1b=j;2 u};j.1J=4(){};j.d={f:4(s){5 E=r 9(v);m(5 c z s){5 13=E[c];E[c]=j.U(13,s[c])}2 r j(E)},1K:4(){m(5 i=0,l=a.D;i<l;i++)$f(9.d,a[i])}};j.U=4(p,o){7(p&&p!=o){5 b=$b(o);7(b!=$b(p))2 o;P(b){n\'4\':5 H=4(){9.K=a.15.K;2 o.J(9,a)};H.K=p;2 H;n\'q\':2 $F(p,o)}}2 o};',62,130,'||return||function|var|obj|if|window|this|arguments|type|property|prototype||extend|prop|document||Class|args||for|case|current|previous|object|new|properties|mix|klass|null|mp|native|ap|in|HTMLElement|true|webkit|length|proto|merge|props|merged|typeof|apply|parent|Array|min|defined|timer|switch|Abstract|else||initialize|Merge|xpath|generic|htmlElement|head|false|bind||random|pp|element|callee|Math|max|ie6|undefined|picked|constructor|nodeValue|nodeType|chk|String|Number|floor|pick|test|textnode|number|item|class|regexp|nodeName|RegExp|collection|version|slice|call|whitespace|MooTools|array|Function|taintEnabled|khtml|Object|createElement|gecko|getBoxObjectFor|navigator|webkit420|iframe|DOMElement|empty|implement|catch|BackgroundImageCache|try|execCommand|all|webkit419|childNodes|clearInterval|Window|clear|getTime|time|Date|Document|clearTimeout|getElementsByTagName|ie7|ie|XMLHttpRequest|evaluate|ActiveXObject'.split('|'),0,{}))
if (!window.console || !console.firebug) {

    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];

    window.console = {};
    for (var i = 0; i < names.length; ++i)
        window.console[names[i]] = function() {}
}

if (!SHARETHIS) {

/*
 *    Sharelet
 *
 *    The thing being shared. There can be zero or more sharelets per page.
 *    Share buttons can optionally be created here requiring the DOM parent
 *    to exist.
 */

function SHARETHIS_merge(){
	var mix = {};
	for (var i = 0, l = arguments.length; i < l; i++){
		var object = arguments[i];
		if (typeof(object) != 'object') continue;
		for (var key in object){
			var op = object[key], mp = mix[key];
			mix[key] = (mp && typeof(op) == 'object' && typeof(mp) == 'object') ? SHARETHIS_merge(mp, op) : SHARETHIS_unlink(op);
		}
	}
	return mix;
};


function SHARETHIS_unlink(object){
	var SHARETHIS_unlinked;	
	switch (typeof(object)){
		case 'object':
			SHARETHIS_unlinked = {};
			for (var p in object) SHARETHIS_unlinked[p] = SHARETHIS_unlink(object[p]);
		break;
		case 'hash':
			SHARETHIS_unlinked = SHARETHIS_unlink(object.getClean());
		break;
		case 'array':
			SHARETHIS_unlinked = [];
			for (var i = 0, l = object.length; i < l; i++) SHARETHIS_unlinked[i] = SHARETHIS_unlink(object[i]);
		break;
		default: return object;
	}
	return SHARETHIS_unlinked;
};


var Sharelet = {
    node:   null,    // DOM parent node.
    button: null,
    properties: {
        type:       '',
        title:      document.title,
        summary:    '',
        content:    '',
        url:        document.URL,
        icon:       '',
        category:   '',
        updated:    document.lastModified,
        published:  '',
        author:     ''
    },
    options: {
        button: true,
        buttonText: 'ShareThis'
    },
    initialize: function(options){
        this.options = SHARETHIS_merge(this.options, options);
    },
    bind: function(node){
        if (this.node !== null && this.node !== node) {
            try {this.node.removeChild(this.button)} catch(err){
                
            }
        }
        if (this.options.button == true) {
            try{node.appendChild(this.button)} catch(err){
               
            }
        }
        this.node = node;
    }
}

/*
 *    ShareThisWidget
 *
 *    Handles creation of the widget, positioning and visibility.
 */
var ShareThisWidget = {
    visible:    0,
    wrapper:    null,
    iframe:     null,
    close:      null,
    sharelet:   null,
    left:       0,
    top:        0,
    hiddenEmbeds: false,
    loaderHTML: '<html><head><style>body{background:#eee url(http://w.sharethis.com/widget/1.15/load.gif) center center no-repeat;color:#bbb;font:bold 18px Arial,Helvetica,sans-serif;padding:50px 20px;text-align:center;}</style></head><body>Getting ready to share!</body></html>',
    initialize: function(options){
        this.options = options;
        var d = document.createElement('div');
        d.className = 'stwrapper';
        d.style.visibility = 'hidden';
        this.wrapper = d;
        
        try {
            var f = document.createElement('<iframe name="stframe" allowTransparency="true" style="body{background:transparent;}"></iframe>');
        } catch(err) {
            var f = document.createElement('iframe');
            f.allowTransparency="true";
            f.setAttribute("allowTransparency", "true");
        }
        f.id = 'stframe';
        f.className = 'stframe';
        f.name = 'stframe';
        f.frameBorder = '0';
        f.scrolling = 'no';
        f.width = '354px';
        f.height = '437px';
        d.appendChild(f);
        this.iframe = f;

        var a = document.createElement('a');
        a.href = '#';
        a.title = 'close';
        a.className = 'stclose';
        a.onclick = this.hide;
        a.style.color = '#fff';
        var t = document.createTextNode('X');
        a.appendChild(t);
        d.appendChild(a);
        this.close = a;
    },
    show: function(opts){
        SHARETHIS.widget.visible = 1;
        SHARETHIS.widget.wrapper.style.left = this.left+'px';
        SHARETHIS.widget.wrapper.style.top = this.top+'px';
        if (SHARETHIS.widget.wrapper.parentNode == null
            || typeof(SHARETHIS.widget.wrapper.parentNode.tagName) == 'undefined'){
            document.body.appendChild(SHARETHIS.widget.wrapper);
        }
        SHARETHIS.widget.wrapper.style.visibility = 'visible';
        if (opts && Boolean(opts.embeds) != true) {
            SHARETHIS.widget.hiddenEmbeds = true;
            SHARETHIS.widget.hideEmbeds();
        }
        return false;
    },
    hide: function(opts){
        SHARETHIS.widget.visible = 0;
        SHARETHIS.widget.wrapper.style.visibility = 'hidden';
        if (Boolean(SHARETHIS.widget.hiddenEmbeds) == true || (opts && Boolean(opts.embeds) != true)) {
            SHARETHIS.widget.hiddenEmbeds = false;
            SHARETHIS.widget.showEmbeds();
        }
        return false;
    },
    hideEmbeds: function() {
        var embeds = document.getElementsByTagName('embed');
        for (var i=0; i< embeds.length; i++) {
            embeds[i].style.visibility = "hidden";
        }
    },
    showEmbeds: function() {
        var embeds = document.getElementsByTagName('embed');
        for (var i=0; i< embeds.length; i++) {
            embeds[i].style.visibility = "visible";
        }
    },
    loading: function(){
        var w = parent.frames['stframe'];
        try {
        w.window.document.open();
        w.window.document.clear();
        w.window.document.write(this.loaderHTML);
        w.window.document.close();
        } catch(err) {}
    }
}

/*
 *    ShareThis
 *
 *    This global object implements the ShareThis API and binding sharelets and the widget
 *    together.
 */
var ShareThis = {
    version:    '1.22',
    ready:      false,
    readyList:  [],
    toolbar:    false,
    counter:    0,
    widget:     null,
    sharelets:  [],
    page:       {},
    query:      {},
	lastUrl:     'blank',
	logFlag:		true,
    meta: {
        publisher : '',
        hostname  : location.host,
        location  : location.pathname
    },
    initialize: function(options){
        var options = options || {};
        this.options = options;
        if (options.publisher) {
            this.meta.publisher = options.publisher;
        }
		this.page=Sharelet;
        this.page.initialize(SHARETHIS_merge(options,{button:false}));
		this.widget=ShareThisWidget;
        this.widget.initialize();
        if (options.headerbg) {
            var l = this.luminescence(options.headerbg);
            this.widget.close.style.color = l > 0.5 ? '#000' : '#fff';
        }
        /*
        var css = 'http://w.sharethis.com/widget/' + this.version + '/sharethis.css';
        this.load('link', {
            href : (this.options.css ? this.options.css : css),
            rel  : 'stylesheet',
            type : 'text/css'
        });
        if (typeof(window.addEventListener) != 'undefined') {
            window.addEventListener("load", this.onReady, false);
        } else if (typeof(document.addEventListener) != 'undefined') {
            document.addEventListener("load", this.onReady, false);
        } else if (typeof window.attachEvent != 'undefined') {
            window.attachEvent("onload", this.onReady);
        }
        */
    },
    selection: function(){
        if (window.getSelection) {
            this.page.properties.selection = window.getSelection();
        } else if (document.getSelection) {
            this.page.properties.selection = document.getSelection();
        } else if (document.selection && document.selection.createRange) {
            this.page.properties.selection = document.selection.createRange().text;
        }
    },
    luminescence: function(color) {
        var rgb = {};
        if (color.length == 7) {
  	    rgb = [parseInt('0x' + color.substring(1, 3)) / 255,
  	           parseInt('0x' + color.substring(3, 5)) / 255,
  		   parseInt('0x' + color.substring(5, 7)) / 255];
        } else if (color.length == 4) {
  	    rgb =  [parseInt('0x' + color.substring(1, 2)) / 15,
  		    parseInt('0x' + color.substring(2, 3)) / 15,
  		    parseInt('0x' + color.substring(3, 4)) / 15];
        }
        var r = rgb[0], g = rgb[1], b = rgb[2];
        var min = Math.min(r, Math.min(g, b));
        var max = Math.max(r, Math.max(g, b));
        return (min + max) / 2;
    },
    defer: function(f) {
        if (this.ready) {
            f.apply(document, [SHARETHIS]);
        } else {
            this.readyList.push( function() { return f.apply(this, [SHARETHIS]) } );
            //this.readyList.push(f);
        }
    },
    onReady: function() {
        SHARETHIS.ready = true;
        for (var i = 0; i < SHARETHIS.readyList.length; ++i)
            SHARETHIS.readyList[i].apply(document, [SHARETHIS]);

    },
    load: function(t, opts) {
        var e = document.createElement(t);
        for (var i in opts) {
            e.setAttribute(i, opts[i]);
        }
        try {
            document.getElementsByTagName('head')[0].appendChild(e);
        } catch (err) {
            document.body.appendChild(e);
        }
    },
    pageSize: function() {
        var pScroll = [0,0];
        if (typeof(window.pageYOffset) == 'number') {
            //Netscape compliant
            pScroll = [window.pageXOffset, window.pageYOffset];
        } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
            //DOM compliant
            pScroll = [document.body.scrollLeft, document.body.scrollTop];
        } else if (document.documentElement
          && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
            //IE6 standards compliant mode
            pScroll = [document.documentElement.scrollLeft,
                       document.documentElement.scrollTop];
        }
        return pScroll;
    },
    addEntry: function(properties, options){
        var options = options || {};
	try{properties.url=properties.url.toString();}
	catch(err){
		//noop
	}
        if (typeof(options.button) == "undefined") {
            options.button = true;
        }
        if (typeof(options.bind) == "undefined") {
            options.bind = true;
        }
		var s=Sharelet;
        s.initialize(SHARETHIS_merge(this.options, options));
        s.properties = SHARETHIS_merge(s.properties, properties);
        s.idx = this.sharelets.push(s) - 1;
        s.sharethis = this;
        s.widget = this.widget;
		
		if(s.properties.url!==this.lastUrl){
			this.lastUrl=s.properties.url;
		}
		else{
			this.logFlag=false;
		}

        s.popup = function(e){
             if (s.options.onclick) {
                  var res = s.options.onclick.apply(document, [s]);
                  if (res == false) {
                      return false;
                  }
             }
             SHARETHIS.selection();
			var query_str=[];

			for (var j in SHARETHIS.meta) {
				var tmp="meta_"+j+"="+encodeURIComponent(encodeURIComponent(SHARETHIS.meta[j]));
				if(SHARETHIS.meta[j]!==""){
					query_str.push(tmp);
				}
			}
			for (var j in SHARETHIS.page.properties) {
				var tmp="page_"+j+"="+encodeURIComponent(encodeURIComponent(SHARETHIS.page.properties[j]));
				if( (j==="url" || j==="title" || j==="summary") ){
					if(SHARETHIS.page.properties[j]!==""){
						query_str.push(tmp);
					}
				}
			}
			var olist=[s];
			for (var i=0; i < olist.length; i++) {
				obj = olist[i];
				for (var j in obj.properties) {
					var tmp=j+"[]="+encodeURIComponent(encodeURIComponent(obj.properties[j]));
					if(obj.properties[j]!==""){
						query_str.push(tmp);
					}
				}
				for (var j in obj.options) {
					var tmp="opts_"+j+"="+encodeURIComponent(encodeURIComponent(obj.options[j]));
					if(obj.options[j]!==""){
						query_str.push(tmp);
					}
				}
			}
			for (var j in SHARETHIS.query) {
				var tmp="query_"+j+"="+encodeURIComponent(encodeURIComponent(SHARETHIS.query[j]));
				/*if(j==="tabs" || j==="services" || j==="ireg" || j==="reg" || j==){
					query_str.push(tmp)//lightbox only uses: tabs, services, ireg, reg but sending everything
				}*/
				query_str.push(tmp)//lightbox only uses: tabs, services, ireg, reg but sending everything
			}
			var qry_str=query_str.join('&');
		//	qry_str=qry_str.replace(/%3B/,'');
		//	console.log(qry_str);
			var p = window.open("http://sharethis.com/share/lightbox.php?"+qry_str, "stframe","status=1,toolbar=0,width=354,height=437");
             s.widget.popup = p;
             return false;
        };
        s.attachButton = function(a){
            a.onclick = (Boolean(s.options.popup) == true ? s.popup : s.onClick);
        };
        s.onClick = function(e){
            if (s.options.onclick) {
                 var res = s.options.onclick.apply(document, [s]);
                 if (res == false) {
                     return false;
                 }
            }
            findPos = function(obj) {
                var obj = obj || {};
                if (obj.parentNode && obj.parentNode.className.indexOf('stbutton') != -1) {
                    obj = obj.parentNode;
                }
                var pScroll = SHARETHIS.pageSize();
                var pos = pScroll;
                var widgetWidth = 354;
                if (obj.offsetParent) {
                    odims = {offsetLeft:obj.offsetLeft, scrollWidth:obj.scrollWidth};
                    pos = [obj.offsetLeft+obj.scrollWidth,obj.offsetTop+obj.scrollHeight];
                    while (obj = obj.offsetParent) {
                        pos[0] += obj.offsetLeft;
                        pos[1] += obj.offsetTop;
                    }
                    if (s.options.offsetLeft) {
                        pos[0] += parseInt(s.options.offsetLeft);
                    }
                    if (s.options.offsetTop) {
                        pos[1] += parseInt(s.options.offsetTop);
                    }
                    if (!s.options.offsetLeft && !s.options.offsetTop) {
                        pos[0] -= odims.scrollWidth;
                        if (pos[0] + widgetWidth > document.body.scrollWidth) {
                            pos[0] -= widgetWidth - odims.scrollWidth;
                        }
                    }
                }
                return pos;
            };
            if (!e) var e = window.event;
            var el = e.target || e.srcElement;
            var coords = findPos(el);
            s.widget.left = coords[0];
            s.widget.top = coords[1];
            
            if (s.widget.visible) {
                if (s == s.widget.sharelet) {
                    s.widget.hide(s.options);
                } else {
                    s.widget.loading();
                    s.share();
                }
            } else {
                if (s == s.widget.sharelet) {
                    s.widget.show(s.options);
                } else {
                    s.widget.show(s.options);
                    s.widget.loading();
                    s.share();
                }
            }
            return false;
        };
        s.share = function(){
            return s.sharethis.share(s);
        };
        if (typeof(s.options.button) == "undefined" || Boolean(s.options.button) != false) {
            var a = document.createElement("a");
            a.className = 'stbutton stico_' + (s.options.style ? s.options.style : (SHARETHIS.options.style ? SHARETHIS.options.style : 'default'));
            a.title = "ShareThis via email, AIM, social bookmarking and networking sites, etc.";
            a.href = "#";
            a.onclick = (Boolean(s.options.popup) == true ? s.popup : s.onClick);
            var t = document.createElement("span");
            t.className = 'stbuttontext';
            t.appendChild(document.createTextNode(s.options.buttonText));
            a.appendChild(t);
            s.button = a;
            if (typeof(s.options.bind) == "undefined" || Boolean(s.options.bind) != false) {
                var id = 'sharethis_' + s.idx;
                document.write('<span id="' + id + '"></span>');
                var x = document.getElementById(id);
                if (x) {
                    x.appendChild(a);
                }
            }
        }
        if(this.logFlag){this.defer(function(){SHARETHIS.log('view', s)});}
        return s;
    },
    share: function(sharelet){
        this.selection();
        this.widget.sharelet = sharelet;
        this.widget.show(sharelet.options);
        var f = SHARETHIS.form([sharelet]);
        document.body.appendChild(f);
        f.submit();
    },
    form: function(olist) {
		field = function(k, v, brackets) {
            var f   = document.createElement("input");
            f.type  = "hidden";
            f.name  = (brackets == true ? k + "[]" : k);
            f.value = v;
            return f;
        }
        normalize = function(s){
            if (s == null) {
                return '';
            }
            return encodeURIComponent(s);
        }

        var f    = document.createElement("form");
        //f.className  = "stform";
        f.method = "post";
        f.action = "http://sharethis.com/share/lightbox.php";
        f.target = "stframe";
        for (var j in this.meta) {
            f.appendChild(field("meta_" + j, normalize(this.meta[j])));
        }
        for (var j in this.page.properties) {
            f.appendChild(field("page_" + j, normalize(this.page.properties[j])));
        }
        for (var j in this.query) {
            f.appendChild(field("query_" + j, normalize(this.query[j])));
        }
        for (var i=0; i < olist.length; i++) {
            obj = olist[i];
            for (var j in obj.properties) {
                f.appendChild(field(j, normalize(obj.properties[j]), true));
            }
            for (var j in obj.options) {
                f.appendChild(field("opts_"+j, normalize(obj.options[j]), false));
            }
        }
        return f;
    },
    log: function(event, obj) {
        var url = "http://r.sharethis.com/log?event=" + event
            + "&publisher=" + encodeURIComponent(SHARETHIS.meta.publisher)
            + "&hostname=" + encodeURIComponent(SHARETHIS.meta.hostname)
            + "&location=" + encodeURIComponent(SHARETHIS.meta.location)
            + "&url=" + encodeURIComponent(obj.properties.url)
            + "&ts" + (new Date()).getTime() + "." + SHARETHIS.counter++;

        var logger = new Image(1,1);
        logger.src = url;
        logger.onload = function(){return;};
    }
}

var _query = [];
_query.tabs = 'web,post,email';
_query.charset = 'utf-8';
_query.style = 'default';
_query.publisher = 'dcb69b67-1238-4a1c-955d-4c4e8a1a7ea2';
var SHARETHIS=ShareThis;
SHARETHIS.initialize(_query);
// jramos, 11/05/2008 -- no logging!
//SHARETHIS.log('pview', SHARETHIS.page);
SHARETHIS.query = _query;
var st = SHARETHIS;

} // end if !SHARETHIS

// Don't run if called from HEAD, or if toolbar has been run
var _slist = document.getElementsByTagName('script');
var _s = _slist[_slist.length - 1];
if (_s && _s.parentNode.tagName != "HEAD" && typeof(_sttoolbar) == "undefined") {
    var obj = SHARETHIS.addEntry(null,SHARETHIS_merge(_query,{bind:false}));
    var id = 'sharethis_' + obj.idx;
    document.write('<span id="' + id + '"></span>');
    var x = document.getElementById(id);
    obj.bind(x);
}


// tw-sack.js

/* Simple AJAX Code-Kit (SACK) v1.6.1 */
/* �2005 Gregory Wild-Smith */
/* www.twilightuniverse.com */
/* Software licenced under a modified X11 licence,
   see documentation or authors website for more details */

function sack(file) {
	this.xmlhttp = null;

	this.resetData = function() {
		this.method = "POST";
  		this.queryStringSeparator = "?";
		this.argumentSeparator = "&";
		this.URLString = "";
		this.encodeURIString = true;
  		this.execute = false;
  		this.element = null;
		this.elementObj = null;
		this.requestFile = file;
		this.vars = new Object();
		this.responseStatus = new Array(2);
  	};

	this.resetFunctions = function() {
  		this.onLoading = function() { };
  		this.onLoaded = function() { };
  		this.onInteractive = function() { };
  		this.onCompletion = function() { };
  		this.onError = function() { };
		this.onFail = function() { };
	};

	this.reset = function() {
		this.resetFunctions();
		this.resetData();
	};

	this.createAJAX = function() {
		try {
			this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e1) {
			try {
				this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {
				this.xmlhttp = null;
			}
		}

		if (! this.xmlhttp) {
			if (typeof XMLHttpRequest != "undefined") {
				this.xmlhttp = new XMLHttpRequest();
			} else {
				this.failed = true;
			}
		}
	};

	this.setVar = function(name, value){
		this.vars[name] = Array(value, false);
	};

	this.encVar = function(name, value, returnvars) {
		if (true == returnvars) {
			return Array(encodeURIComponent(name), encodeURIComponent(value));
		} else {
			this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true);
		}
	}

	this.processURLString = function(string, encode) {
		encoded = encodeURIComponent(this.argumentSeparator);
		regexp = new RegExp(this.argumentSeparator + "|" + encoded);
		varArray = string.split(regexp);
		for (i = 0; i < varArray.length; i++){
			urlVars = varArray[i].split("=");
			if (true == encode){
				this.encVar(urlVars[0], urlVars[1]);
			} else {
				this.setVar(urlVars[0], urlVars[1]);
			}
		}
	}

	this.createURLString = function(urlstring) {
		if (this.encodeURIString && this.URLString.length) {
			this.processURLString(this.URLString, true);
		}

		if (urlstring) {
			if (this.URLString.length) {
				this.URLString += this.argumentSeparator + urlstring;
			} else {
				this.URLString = urlstring;
			}
		}

		// prevents caching of URLString
		this.setVar("rndval", new Date().getTime());

		urlstringtemp = new Array();
		for (key in this.vars) {
			if (false == this.vars[key][1] && true == this.encodeURIString) {
				encoded = this.encVar(key, this.vars[key][0], true);
				delete this.vars[key];
				this.vars[encoded[0]] = Array(encoded[1], true);
				key = encoded[0];
			}

			urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0];
		}
		if (urlstring){
			this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator);
		} else {
			this.URLString += urlstringtemp.join(this.argumentSeparator);
		}
	}

	this.runResponse = function() {
		eval(this.response);
	}

	this.runAJAX = function(urlstring) {
		if (this.failed) {
			this.onFail();
		} else {
			this.createURLString(urlstring);
			if (this.element) {
				this.elementObj = document.getElementById(this.element);
			}
			if (this.xmlhttp) {
				var self = this;
				if (this.method == "GET") {
					totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString;
					this.xmlhttp.open(this.method, totalurlstring, true);
				} else {
					this.xmlhttp.open(this.method, this.requestFile, true);
					try {
						this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
					} catch (e) { }
				}

				this.xmlhttp.onreadystatechange = function() {
					switch (self.xmlhttp.readyState) {
						case 1:
							self.onLoading();
							break;
						case 2:
							self.onLoaded();
							break;
						case 3:
							self.onInteractive();
							break;
						case 4:
							self.response = self.xmlhttp.responseText;
							self.responseXML = self.xmlhttp.responseXML;
							self.responseStatus[0] = self.xmlhttp.status;
							self.responseStatus[1] = self.xmlhttp.statusText;

							if (self.execute) {
								self.runResponse();
							}

							if (self.elementObj) {
								elemNodeName = self.elementObj.nodeName;
								elemNodeName.toLowerCase();
								if (elemNodeName == "input"
								|| elemNodeName == "select"
								|| elemNodeName == "option"
								|| elemNodeName == "textarea") {
									self.elementObj.value = self.response;
								} else {
									self.elementObj.innerHTML = self.response;
								}
							}
							if (self.responseStatus[0] == "200") {
								self.onCompletion();
							} else {
								self.onError();
							}

							self.URLString = "";
							break;
					}
				};

				this.xmlhttp.send(this.URLString);
			}
		}
	};

	this.reset();
	this.createAJAX();
}


// email-js-packed.js
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}('8 c=S 12(13);8 H=0;8 I=0;8 u=\'\';8 v=\'\';8 w=\'\';8 y=\'\';8 z=\'\';8 j=\'\';8 l=\'\';8 B=\'\';k T(){8 a=C;8 b=14+"\\n";b=b+"15\\n\\n";6(3.5(\'q\')){6(f(u)||!J(u)){b=b+16+"\\n";a=7}}6(3.5(\'r\')){6(f(v)||!K(v)){b=b+17+"\\n";a=7}}6(3.5(\'s\')){6(!f(w)){6(!U(w)){b=b+18+"\\n";a=7}}}6(3.5(\'m\')){6(f(y)){b=b+19+"\\n";a=7}L{M(i=0;i<j.d;i++){6(f(j[i])||!J(j[i])){b=b+1a+j[i]+"\\n";a=7}}}6(j.d>V){b=b+1b+"\\n";a=7}}6(f(z)){b=b+1c+"\\n";a=7}L{M(i=0;i<l.d;i++){6(f(l[i])||!K(l[i])){b=b+1d+"\\n";a=7}}}6(l.d>V){b=b+1e+"\\n";a=7}6(3.5(\'m\')){6(j.d!=l.d){b=b+1f+"\\n";a=7}}6(3.5(\'t\')){6(f(B)){b=b+1g+"\\n";a=7}}6(a==7){1h(b);g C}L{g 7}}k f(a){6(A(a)==""){g 7}g C}k A(a){W(a.D(0,1)==\' \')a=a.D(1,a.d);W(a.D(a.d-1,a.d)==\' \')a=a.D(0,a.d-1);g a}k J(a){8 a=A(a);8 b=/[(\\*\\(\\)\\[\\]\\+\\,\\/\\?\\:\\;\\\'\\"\\`\\~\\\\#\\$\\%\\^\\&\\<\\>)+]/;g!b.X(a)}k K(a){8 a=A(a);8 b=/^([a-N-O-1i\\.\\-])+\\@(([a-N-O-9\\-])+\\.)+([a-N-O-9]{2,4})+$/;g b.X(a)}k U(a){8 a=A(a);8 b=S 1j(\'1k-E\',\'1l\',\'1m\',\'1n\',\'1o\',\'P-1p\',\'P-1q\',\'P-1r-1s\',\'1t-E\',\'1u-Y-E\',\'1v-1w\',\'1x-1y\',\'Q/1z\',\'Q/1A\',\'Q/1B\',\'Y-E\',\'x-1C\',\'x-1D\',\'x-1E\');M(i=0;i<b.d;i++){6(a.1F(b[i])!=-1){g C}}g 7}k 1G(a){1H.1I(a,"1J","1K=Z,1L=Z,1M=0,1N=0,1O=0,1P=0,1Q=1,1R=0")}k 1S(){6(3.5(\'q\')){u=3.5(\'q\').h}6(3.5(\'r\')){v=3.5(\'r\').h}6(3.5(\'s\')){w=3.5(\'s\').h}6(3.5(\'m\')){y=3.5(\'m\').h;j=y.10(",")}z=3.5(\'R\').h;l=z.10(",");6(3.5(\'t\')){B=3.5(\'t\').h}6(3.5(\'p\')){H=3.5(\'p\').h}6(3.5(\'F\')){I=3.5(\'F\').h}6(T()){3.5(\'G-c-1T\').o=7;3.5(\'G-c-1U\').1V.1W=\'1X\';c.1Y();6(3.5(\'q\')){c.e(\'q\',u);3.5(\'q\').o=7}6(3.5(\'r\')){c.e(\'r\',v);3.5(\'r\').o=7}6(3.5(\'s\')){c.e(\'s\',w);3.5(\'s\').o=7}6(3.5(\'m\')){c.e(\'m\',y);3.5(\'m\').o=7}c.e(\'R\',z);3.5(\'R\').o=7;6(3.5(\'t\')){c.e(\'t\',B);3.5(\'t\').o=7}6(3.5(\'p\')){c.e(\'p\',H)}6(3.5(\'F\')){c.e(\'F\',I)}c.e(\'G-c\',\'1\');c.e(\'11\',3.5(\'11\').h);c.1Z=\'20\';c.21=\'G-c\';c.22()}}',62,127,'|||document||getElementById|if|true|var||||email|length|setVar|isEmpty|return|value||email_friendnames|function|email_friendemails|friendname||disabled||yourname|youremail|yourremarks|imageverify|email_yourname|email_youremail|email_yourremarks||email_friendname|email_friendemail|trim|email_imageverify|false|substring|to|page_id|wp|email_p|email_pageid|is_valid_name|is_valid_email|else|for|zA|Z0|content|multipart|friendemail|new|validate_email_form|is_valid_remarks|email_max_allowed|while|test|reply|500|split|popup|sack|email_ajax_url|email_text_error|__________________________________|email_text_name_invalid|email_text_email_invalid|email_text_remarks_invalid|email_text_friend_names_empty|email_text_friend_name_invalid|email_text_max_friend_names_allowed|email_text_friend_emails_empty|email_text_friend_email_invalid|email_text_max_friend_emails_allowed|email_text_friends_tally|email_text_image_verify_empty|alert|9_|Array|apparently|cc|bcc|boundary|charset|disposition|type|transfer|encoding|errors|in|message|id|mime|version|mixed|alternative|related|mailer|sender|uidl|indexOf|email_popup|window|open|_blank|width|height|toolbar|menubar|location|resizable|scrollbars|status|email_form|submit|loading|style|display|block|reset|method|POST|element|runAJAX'.split('|'),0,{}))

// polls-js-packed.js
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}('h 3=Z 11(12);h 6=0;h c="";h b=0;h 5=8;h n=(7.O&&7.9);h o=(!7.O&&7.9);h p=(13.14.15("16")>-1);h d=q;f 17(a){2(!d){d=r;6=a;s=7.9(\'P\'+6);k=18("s.Q"+6);c="";2(7.9(\'R\'+6)){l=S(7.9(\'R\'+6).y)}4{l=0}t=0;2(k.z!=19){T(i=0;i<k.z;i++){2(k[i].1a){2(l>0){c=k[i].y+","+c;t++}4{c=S(k[i].y)}}}}4{c=k.y}2(l>0){2(t>0&&t<=l){c=c.1b(0,(c.z-1));u();A()}4 2(t==0){d=q;m(U)}4{d=q;m(1c+" "+l+".")}}4{2(c>0){u();A()}4{d=q;m(U)}}}4{m(G)}}f 1d(a){2(!d){d=r;6=a;u();H()}4{m(G)}}f 1e(a){2(!d){d=r;6=a;u();I()}4{m(G)}}f v(){2(b==1f){w()}2(b<8){b+=10;2(p){b=8;w()}4 2(n){2(j){7.9(\'3-\'+6+\'-e\').g.B=\'C(D=\'+b+\')\'}4{b=8;w()}}4 2(o){2(j){7.9(\'3-\'+6+\'-e\').g.E=(b/8)}4{b=8;w()}}F("v()",8)}4{b=8;d=q}}f u(){2(V){7.9(\'3-\'+6+\'-W\').g.X=\'1g\'}}f w(){2(V){7.9(\'3-\'+6+\'-W\').g.X=\'1h\'}}f A(){2(5>0){5-=10;2(p){5=0}4 2(n){2(j){7.9(\'3-\'+6+\'-e\').g.B=\'C(D=\'+5+\')\'}4{5=0}}4 2(o){2(j){7.9(\'3-\'+6+\'-e\').g.E=(5/8)}4{5=0}}F("A()",8)}4{5=0;3.J();3.x("1i",r);3.x("6",6);3.x("Q"+6,c);3.K=\'1j\';3.L=\'3-\'+6+\'-e\';3.M=v;3.N();b=0;5=8}}f H(){2(5>0){5-=10;2(p){5=0}4 2(n){2(j){7.9(\'3-\'+6+\'-e\').g.B=\'C(D=\'+5+\')\'}4{5=0}}4 2(o){2(j){7.9(\'3-\'+6+\'-e\').g.E=(5/8)}4{5=0}}F("H()",8)}4{5=0;3.J();3.x("1k",6);3.K=\'Y\';3.L=\'3-\'+6+\'-e\';3.M=v;3.N();b=0;5=8}}f I(){2(5>0){5-=10;2(p){5=0}4 2(n){2(j){7.9(\'3-\'+6+\'-e\').g.B=\'C(D=\'+5+\')\'}4{5=0}}4 2(o){2(j){7.9(\'3-\'+6+\'-e\').g.E=(5/8)}4{5=0}}F("I()",8)}4{5=0;3.J();3.x("1l",6);3.K=\'Y\';3.L=\'3-\'+6+\'-e\';3.M=v;3.N();b=0;5=8}}f 1m(a){s=7.9(\'P\'+a);T(i=0;i<s.z;i++){s[i].1n=r}}',62,86,'||if|polls|else|poll_fadeout_opacity|poll_id|document|100|getElementById||poll_fadein_opacity|poll_answer_id|is_being_voted|ans|function|style|var||poll_show_fading|poll_answer|poll_multiple_ans|alert|is_ie|is_moz|is_opera|false|true|poll_form|poll_multiple_ans_count|poll_loading_text|poll_fadein_text|poll_unloading_text|setVar|value|length|poll_process|filter|alpha|opacity|MozOpacity|setTimeout|polls_text_wait|poll_process_result|poll_process_booth|reset|method|element|onCompletion|runAJAX|all|polls_form_|poll_|poll_multiple_ans_|parseInt|for|polls_text_valid|poll_show_loading|loading|display|GET|new||sack|polls_ajax_url|navigator|userAgent|indexOf|Opera|poll_vote|eval|null|checked|substring|polls_text_multiple|poll_result|poll_booth|90|block|none|vote|POST|pollresult|pollbooth|poll_disable_voting|disabled'.split('|'),0,{}))

// postratings-js-packed.js
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}('h 7=W X(Y);h 4=0;h x=0;h d=0;h m=g;h y=(5.E&&5.9);h z=(!5.E&&5.9);h A=(Z.11.12("13")>-1);h p=F;n B(){3(d<g){d+=10;3(A){d=g}6 3(y){3(v){5.9(\'o-7-\'+4).k.G=\'H(I=\'+d+\')\'}6{d=g}}6 3(z){3(v){5.9(\'o-7-\'+4).k.J=(d/g)}6{d=g}}K("B()",g)}6{d=g;L();p=F}}n 14(a,b,c){3(!p){4=a;x=b;3(u&&M==2){5.8[\'e\'+4+\'j\'+b].f=C("l"+b+"N.f")}6{O(i=1;i<=b;i++){3(u){5.8[\'e\'+4+\'j\'+i].f=C("l"+i+"N.f")}6{5.8[\'e\'+4+\'j\'+i].f=C("15.f")}}}3(5.9(\'l\'+4+\'q\')){5.9(\'l\'+4+\'q\').k.w=\'16\';5.9(\'l\'+4+\'q\').P=c}}}n 17(a,b,c){3(!p){O(i=1;i<=M;i++){3(i<=a){3(u){5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/e\'+i+\'18.\'+t}6{5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/19.\'+t}}6 3(i==b){3(u){5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/e\'+i+\'1a\'+(c?\'-Q\':\'\')+\'.\'+t}6{5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/1b\'+(c?\'-Q\':\'\')+\'.\'+t}}6{3(u){5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/e\'+i+\'1c.\'+t}6{5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/1d.\'+t}}}3(5.9(\'l\'+4+\'q\')){5.9(\'l\'+4+\'q\').k.w=\'R\';5.9(\'l\'+4+\'q\').P=\'\'}}}n S(){3(T){5.9(\'o-7-\'+4+\'-U\').k.w=\'1e\'}}n L(){3(T){5.9(\'o-7-\'+4+\'-U\').k.w=\'R\'}}n 1f(){3(!p){p=1g;S();D()}6{1h(1i)}}n D(){3(m>0){m-=10;3(A){d=0}6 3(y){3(v){5.9(\'o-7-\'+4).k.G=\'H(I=\'+m+\')\'}6{d=0}}6 3(z){3(v){5.9(\'o-7-\'+4).k.J=(m/g)}6{d=0}}K("D()",g)}6{m=0;7.1j();7.V("1k",4);7.V("1l",x);7.1m=\'1n\';7.1o=\'o-7-\'+4;7.1p=B;7.1q();d=0;m=g}}',62,89,'|||if|post_id|document|else|ratings|images|getElementById||||rate_fadein_opacity|rating_|src|100|var||_|style|ratings_|rate_fadeout_opacity|function|post|is_being_rated|_text|ratings_plugin_url|ratings_image|ratings_image_ext|ratings_custom|ratings_show_fading|display|post_rating|is_ie|is_moz|is_opera|rade_fadein_text|eval|rate_process|all|false|filter|alpha|opacity|MozOpacity|setTimeout|rate_unloading_text|ratings_max|_mouseover_image|for|innerHTML|rtl|none|rate_loading_text|ratings_show_loading|loading|setVar|new|sack|ratings_ajax_url|navigator||userAgent|indexOf|Opera|current_rating|ratings_mouseover_image|inline|ratings_off|_on|rating_on|_half|rating_half|_off|rating_off|block|rate_post|true|alert|ratings_text_wait|reset|pid|rate|method|GET|element|onCompletion|runAJAX'.split('|'),0,{}))


  var validateContentPackageForm = function(form) {
	  
	  if (! (form.options_name.value && form.options_company_name.value && form.options_title.value && form.options_website.value && form.options_email.value && form.options_phone.value)) {
		  alert('All contact fields are required');
		  return false;
	  } else if (! (form.content_package_p1.checked || form.content_package_p2.checked || form.content_package_p3.checked || form.content_package_p4.checked || form.content_package_p5.checked || form.content_package_p6.checked || form.content_package_p7.checked || form.content_package_p8.checked || form.content_package_p9.checked || form.content_package_p10.checked || form.content_package_p11.checked || form.content_package_p12.checked || form.content_package_p13.checked || form.content_package_p14.checked || form.content_package_p15.checked || form.content_package_p16.checked)) {
		  alert('You didn\'t select any packages');
		  return false;
	  }
	  
	  return true;
  }

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}