
/*
 * jQuery Impromptu
 * By: Trent Richardson [http://trentrichardson.com]
 * Version 3.1
 * Last Modified: 3/30/2010
 * 
 * Copyright 2010 Trent Richardson
 * Dual licensed under the MIT and GPL licenses.
 * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt
 * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
 * 
 */
(function($){$.prompt=function(message,options){options=$.extend({},$.prompt.defaults,options);$.prompt.currentPrefix=options.prefix;var ie6=($.browser.msie&&$.browser.version<7);var $body=$(document.body);var $window=$(window);options.classes=$.trim(options.classes);if(options.classes!='')options.classes=' '+options.classes;var msgbox='<div class="'+options.prefix+'box'+options.classes+'" id="'+options.prefix+'box">';if(options.useiframe&&(($('object, applet').length>0)||ie6)){msgbox+='<iframe src="javascript:false;" style="display:block;position:absolute;z-index:-1;" class="'+options.prefix+'fade" id="'+options.prefix+'fade"></iframe>';}else{if(ie6){$('select').css('visibility','hidden');}msgbox+='<div class="'+options.prefix+'fade" id="'+options.prefix+'fade"></div>';}msgbox+='<div class="'+options.prefix+'" id="'+options.prefix+'"><div class="'+options.prefix+'container"><div class="';msgbox+=options.prefix+'close">X</div><div id="'+options.prefix+'states"></div>';msgbox+='</div></div></div>';var $jqib=$(msgbox).appendTo($body);var $jqi=$jqib.children('#'+options.prefix);var $jqif=$jqib.children('#'+options.prefix+'fade');if(message.constructor==String){message={state0:{html:message,buttons:options.buttons,focus:options.focus,submit:options.submit}};}var states="";$.each(message,function(statename,stateobj){stateobj=$.extend({},$.prompt.defaults.state,stateobj);message[statename]=stateobj;states+='<div id="'+options.prefix+'_state_'+statename+'" class="'+options.prefix+'_state" style="display:none;"><div class="'+options.prefix+'message">'+stateobj.html+'</div><div class="'+options.prefix+'buttons">';$.each(stateobj.buttons,function(k,v){if(typeof v=='object')states+='<button name="'+options.prefix+'_'+statename+'_button'+v.title.replace(/[^a-z0-9]+/gi,'')+'" id="'+options.prefix+'_'+statename+'_button'+v.title.replace(/[^a-z0-9]+/gi,'')+'" value="'+v.value+'">'+v.title+'</button>';else states+='<button name="'+options.prefix+'_'+statename+'_button'+k+'" id="'+options.prefix+'_'+statename+'_button'+k+'" value="'+v+'">'+k+'</button>';});states+='</div></div>';});$jqi.find('#'+options.prefix+'states').html(states).children('.'+options.prefix+'_state:first').css('display','block');$jqi.find('.'+options.prefix+'buttons:empty').css('display','none');$.each(message,function(statename,stateobj){var $state=$jqi.find('#'+options.prefix+'_state_'+statename);$state.children('.'+options.prefix+'buttons').children('button').click(function(){var msg=$state.children('.'+options.prefix+'message');var clicked=stateobj.buttons[$(this).text()];if(clicked==undefined){for(var i in stateobj.buttons)if(stateobj.buttons[i].title==$(this).text())clicked=stateobj.buttons[i].value;}if(typeof clicked=='object')clicked=clicked.value;var forminputs={};$.each($jqi.find('#'+options.prefix+'states :input').serializeArray(),function(i,obj){if(forminputs[obj.name]===undefined){forminputs[obj.name]=obj.value;}else if(typeof forminputs[obj.name]==Array||typeof forminputs[obj.name]=='object'){forminputs[obj.name].push(obj.value);}else{forminputs[obj.name]=[forminputs[obj.name],obj.value];}});var close=stateobj.submit(clicked,msg,forminputs);if(close===undefined||close){removePrompt(true,clicked,msg,forminputs);}});$state.find('.'+options.prefix+'buttons button:eq('+stateobj.focus+')').addClass(options.prefix+'defaultbutton');});var ie6scroll=function(){$jqib.css({top:$window.scrollTop()});};var fadeClicked=function(){if(options.persistent){var i=0;$jqib.addClass(options.prefix+'warning');var intervalid=setInterval(function(){$jqib.toggleClass(options.prefix+'warning');if(i++>1){clearInterval(intervalid);$jqib.removeClass(options.prefix+'warning');}},100);}else{removePrompt();}};var keyPressEventHandler=function(e){var key=(window.event)?event.keyCode:e.keyCode;if(key==27){fadeClicked();}if(key==9){var $inputels=$(':input:enabled:visible',$jqib);var fwd=!e.shiftKey&&e.target==$inputels[$inputels.length-1];var back=e.shiftKey&&e.target==$inputels[0];if(fwd||back){setTimeout(function(){if(!$inputels)return;var el=$inputels[back===true?$inputels.length-1:0];if(el)el.focus();},10);return false;}}};var positionPrompt=function(){$jqib.css({position:(ie6)?"absolute":"fixed",height:$window.height(),width:"100%",top:(ie6)?$window.scrollTop():0,left:0,right:0,bottom:0});$jqif.css({position:"absolute",height:$window.height(),width:"100%",top:0,left:0,right:0,bottom:0});$jqi.css({position:"absolute",top:options.top,left:"50%",marginLeft:(($jqi.outerWidth()/2)*-1)});};var stylePrompt=function(){$jqif.css({zIndex:options.zIndex,display:"none",opacity:options.opacity});$jqi.css({zIndex:options.zIndex+1,display:"none"});$jqib.css({zIndex:options.zIndex});};var removePrompt=function(callCallback,clicked,msg,formvals){$jqi.remove();if(ie6){$body.unbind('scroll',ie6scroll);}$window.unbind('resize',positionPrompt);$jqif.fadeOut(options.overlayspeed,function(){$jqif.unbind('click',fadeClicked);$jqif.remove();if(callCallback){options.callback(clicked,msg,formvals);}$jqib.unbind('keypress',keyPressEventHandler);$jqib.remove();if(ie6&&!options.useiframe){$('select').css('visibility','visible');}});};positionPrompt();stylePrompt();if(ie6){$window.scroll(ie6scroll);}$jqif.click(fadeClicked);$window.resize(positionPrompt);$jqib.bind("keydown keypress",keyPressEventHandler);$jqi.find('.'+options.prefix+'close').click(removePrompt);$jqif.fadeIn(options.overlayspeed);$jqi[options.show](options.promptspeed,options.loaded);$jqi.find('#'+options.prefix+'states .'+options.prefix+'_state:first .'+options.prefix+'defaultbutton').focus();if(options.timeout>0)setTimeout($.prompt.close,options.timeout);return $jqib;};$.prompt.defaults={prefix:'jqi',classes:'',buttons:{Ok:true},loaded:function(){},submit:function(){return true;},callback:function(){},opacity:0.6,zIndex:999,overlayspeed:'slow',promptspeed:'fast',show:'fadeIn',focus:0,useiframe:false,top:"15%",persistent:true,timeout:0,state:{html:'',buttons:{Ok:true},focus:0,submit:function(){return true;}}};$.prompt.currentPrefix=$.prompt.defaults.prefix;$.prompt.setDefaults=function(o){$.prompt.defaults=$.extend({},$.prompt.defaults,o);};$.prompt.setStateDefaults=function(o){$.prompt.defaults.state=$.extend({},$.prompt.defaults.state,o);};$.prompt.getStateContent=function(state){return $('#'+$.prompt.currentPrefix+'_state_'+state);};$.prompt.getCurrentState=function(){return $('.'+$.prompt.currentPrefix+'_state:visible');};$.prompt.getCurrentStateName=function(){var stateid=$.prompt.getCurrentState().attr('id');return stateid.replace($.prompt.currentPrefix+'_state_','');};$.prompt.goToState=function(state,callback){$('.'+$.prompt.currentPrefix+'_state').slideUp('slow');$('#'+$.prompt.currentPrefix+'_state_'+state).slideDown('slow',function(){$(this).find('.'+$.prompt.currentPrefix+'defaultbutton').focus();if(typeof callback=='function')callback();});};$.prompt.nextState=function(callback){var $next=$('.'+$.prompt.currentPrefix+'_state:visible').next();$('.'+$.prompt.currentPrefix+'_state').slideUp('slow');$next.slideDown('slow',function(){$next.find('.'+$.prompt.currentPrefix+'defaultbutton').focus();if(typeof callback=='function')callback();});};$.prompt.prevState=function(callback){var $next=$('.'+$.prompt.currentPrefix+'_state:visible').prev();$('.'+$.prompt.currentPrefix+'_state').slideUp('slow');$next.slideDown('slow',function(){$next.find('.'+$.prompt.currentPrefix+'defaultbutton').focus();if(typeof callback=='function')callback();});};$.prompt.close=function(){$('#'+$.prompt.currentPrefix+'box').fadeOut('fast',function(){$(this).remove();});};$.fn.prompt=function(options){if(options==undefined)options={};if(options.withDataAndEvents==undefined)options.withDataAndEvents=false;$.prompt($(this).clone(options.withDataAndEvents).html(),options);}})(jQuery);


// ------------------------------------------------------- 
 
 /**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true});
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
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]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};

// jquery.innerfade.js

// Datum: 2008-02-14
// Firma: Medienfreunde Hofmann & Baldes GbR
// Author: Torsten Baldes
// Mail: t.baldes@medienfreunde.com
// Web: http://medienfreunde.com
// Enhanced: Image lazy loading added by www.accwebworks.com

(function($){$.fn.innerfade=function(options){return this.each(function(){$.innerfade(this,options);});};$.innerfade=function(container,options){var settings={'animationtype':'fade','speed':'normal','type':'sequence','timeout':2000,'containerheight':'auto','runningclass':'innerfade','children':null};if(options)
$.extend(settings,options);if(settings.children===null)
var elements=$(container).children();else
var elements=$(container).children(settings.children);if(elements.length>1){$(container).css('position','relative').css('height',settings.containerheight).addClass(settings.runningclass);for(var i=0;i<elements.length;i++){$(elements[i]).css('z-index',String(elements.length-i)).css('position','absolute').hide();};if(settings.type=="sequence"){setTimeout(function(){$.innerfade.next(elements,settings,1,0);},settings.timeout); $("img",$(elements[0])).attr("src",$("img",$(elements[0])).attr("lazy_src"));$(elements[0]).show();}else if(settings.type=="random"){var last=Math.floor(Math.random()*(elements.length));setTimeout(function(){do{current=Math.floor(Math.random()*(elements.length));}while(last==current);$.innerfade.next(elements,settings,current,last);},settings.timeout); $("img",$(elements[last])).attr("src",$("img",$(elements[last])).attr("lazy_src"));$(elements[last]).show();}else if(settings.type=='random_start'){settings.type='sequence';var current=Math.floor(Math.random()*(elements.length));setTimeout(function(){$.innerfade.next(elements,settings,(current+1)%elements.length,current);},settings.timeout); $("img",$(elements[current])).attr("src",$("img",$(elements[current])).attr("lazy_src"));$(elements[current]).show();}else{alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');}}};$.innerfade.next=function(elements,settings,current,last){if(settings.animationtype=='slide'){$("img",$(elements[current])).attr("src",$("img",$(elements[current])).attr("lazy_src"));$(elements[last]).slideUp(settings.speed);$(elements[current]).slideDown(settings.speed);}else if(settings.animationtype=='fade'){$("img",$(elements[current])).attr("src",$("img",$(elements[current])).attr("lazy_src"));$(elements[last]).fadeOut(settings.speed);$(elements[current]).fadeIn(settings.speed,function(){removeFilter($(this)[0]);});}else
alert('Innerfade-animationtype must either be \'slide\' or \'fade\'');if(settings.type=="sequence"){if((current+1)<elements.length){current=current+1;last=current-1;}else{current=0;last=elements.length-1;}}else if(settings.type=="random"){last=current;while(current==last)
current=Math.floor(Math.random()*elements.length);}else
alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');setTimeout((function(){$.innerfade.next(elements,settings,current,last);}),settings.timeout);};})(jQuery);function removeFilter(element){if(element.style.removeAttribute){element.style.removeAttribute('filter');}}


// ------------------------------------------------------------------------------------------------------------
jQuery.fn.extend({
	    shadow: function(options) {
		DropShadow(this, options);
	}
});

function DropShadow(element, options){
	var cornerHeight = 8;
	var width = 4;
	var startOpacity = 80;
	var endOpacity = 20;
	var color = "black";
	
	if(options){
		if(options["cornerHeight"] != null)
			cornerHeight = parseInt(options["cornerHeight"]);
		if(options["width"] != null)
			width = parseInt(options["width"]);
		if(options["startOpacity"] != null)
			startOpacity = parseFloat(options["startOpacity"]);
		if(options["endOpacity"] != null)
			endOpacity = parseFloat(options["endOpacity"]);
		if(options["color"] != null)
			color = options["color"];
			
		if(startOpacity < 1)
			startOpacity = Math.round(startOpacity*100);
		
		if(endOpacity < 1)
			endOpacity = Math.round(endOpacity * 100);
	}
	
//	if($("._shadow_").length > 0)
//		$("._shadow_").remove();
		
	$.each($(element), function(i) {
	        var id = "_shadow_" + i;
	        var html = "<div class='_shadow_' id='" + id + "' style='";
        	
	        if($(this).css("position") == "absolute" || $(this).css("position") == "relative"){
		        html += "position: " + $(this).css("position")+"; ";
		        $(this).css("position", "");
	        }
        	
	        if($(this).css("top")){
		        html += "top:"+$(this).css("top")+"; ";
		        $(this).css("top", "");
	        }

	        if($(this).css("left")){
		        html += "left:"+$(this).css("left")+"; ";
		        $(this).css("left", "");		
	        }
        	
	        html += "'><table style='float:left-nowork-chrome;' cellpadding='0px' cellspacing='0px'><tr class='shadowFirstRow'>"+
		        "<td colspan='2' rowspan='2'></td></tr></table></div>";
        	
	        $(this).wrap(html);
        		
	        html = "<td colspan='"+width+"' style='width:"+width+"px; height:"+cornerHeight+"px;'><table cellpadding='0px' cellspacing='0px'>";
        	
	        var opacity = startOpacity;
        	
	        for(var i = 0; i < cornerHeight; i++){
		        html += "<tr>";
        		
		        for(var j = 0; j < width; j++){
			        opacity = Math.round((i - j * (cornerHeight / width)) * 10);
        			
			        if(opacity < 0)
				        opacity = 0;
			        else if(opacity < 10)
				        opacity = "0"+opacity;
        				
			        html += "<td style='height:1px; width:1px; background-color: "+color+"; opacity:0."+opacity+"; filter:Alpha(opacity="+opacity+");'></td>"
		        }
        		
		        html += "</tr>";
	        }
        	
	        html += "</table></td>";
        	
	        $("#" + id).find(".shadowFirstRow").append(html);
        	
	        html = "<tr>";
        	
	        for(var i = startOpacity; i >= endOpacity; i -= (startOpacity - endOpacity) / (width - 1)){
		        opacity = Math.round(i);
        		
		        if(opacity < 10)
			        opacity = "0" + opacity;
        			
		        html += "<td style='background-color:"+color+"; padding:0px; margin:0px; height:"+($(this).height()- cornerHeight + 12)+"px; opacity:0."+opacity+"; filter:Alpha(opacity="+opacity+");'></td>";
	        }
        	
	        html += "</tr>";
        	
	        html += "<tr><td rowspan='"+width+"' style='width:"+cornerHeight+"px; height:"+width+"px;'><table cellpadding='0px' cellspacing='0px'>";
	        for(var i = 0; i < width; i++){
		        html += "<tr>";
        		
		        for(var j = 0; j < cornerHeight; j++){
			        opacity = Math.round((0 - i * (cornerHeight / width) + j)*10);
        			
			        if(opacity < 0)
				        opacity = 0;
			        else if(opacity < 10)
				        opacity = "0"+opacity;
        				
			        html += "<td style='width:1px; height:1px; background-color:"+color+"; opacity:0."+opacity+"; filter:Alpha(opacity="+opacity+");'></td>";
		        }
        		
		        html += "</tr>";
	        }
        	
	        html += "</table></td>";
        	
	        var temp = $(this).width() + 4;
        	
        // all IE bugs are handled by IE9    	
	    //     if($.browser.msie)
		//        temp -= cornerHeight + 4;
        	
	        for(var i = startOpacity; i >= endOpacity; i -= (startOpacity - endOpacity) / (width - 1)){
		        if(i != startOpacity)
			        html += "<tr>";
        		
		        opacity = Math.round(i);
        		
		        if(opacity < 10)
			        opacity = "0"+opacity;
        			
		        html += "<td style='height:1px; width:"+temp+"px; background-color:"+color+"; opacity:0."+opacity+"; filter:Alpha(opacity="+opacity+");'></td>";
        					
		        for(var j = startOpacity; j >= endOpacity; j -= (startOpacity - endOpacity) / (width - 1)){
			        opacity = Math.round(j);
        			
			        if(opacity > i)
				        opacity = Math.round(i);
        			
        			
			        if(opacity < 10)
				        opacity = "0"+opacity;
        				
			        html += "<td style='width:1px; height:1px; background-color:"+color+"; opacity:0."+opacity+"; filter:Alpha(opacity="+opacity+");'></td>";
		        }
        		
		        html += "</tr>";
	        }
        	
	        $("#" + id).children("table").append(html);
	
	});
	
}



/*
 ### jQuery Star Rating Plugin v3.13 - 2009-03-26 ###
 * Home: http://www.fyneworks.com/jquery/star-rating/
 * Code: http://code.google.com/p/jquery-star-rating-plugin/
 *
	* 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}(';5(29.1j)(7($){5($.1L.1J)1I{1t.1H("1K",J,H)}1M(e){};$.n.3=7(i){5(4.Q==0)k 4;5(A I[0]==\'1h\'){5(4.Q>1){8 j=I;k 4.W(7(){$.n.3.y($(4),j)})};$.n.3[I[0]].y(4,$.1T(I).1U(1)||[]);k 4};8 i=$.12({},$.n.3.1s,i||{});$.n.3.K++;4.2a(\'.9-3-1f\').o(\'9-3-1f\').W(7(){8 a,l=$(4);8 b=(4.23||\'21-3\').1v(/\\[|\\]/g,\'Z\').1v(/^\\Z+|\\Z+$/g,\'\');8 c=$(4.1X||1t.1W);8 d=c.6(\'3\');5(!d||d.18!=$.n.3.K)d={z:0,18:$.n.3.K};8 e=d[b];5(e)a=e.6(\'3\');5(e&&a)a.z++;x{a=$.12({},i||{},($.1b?l.1b():($.1S?l.6():s))||{},{z:0,F:[],v:[]});a.w=d.z++;e=$(\'<1R V="9-3-1Q"/>\');l.1P(e);e.o(\'3-15-T-17\');5(l.S(\'R\'))a.m=H;e.1c(a.E=$(\'<P V="3-E"><a 14="\'+a.E+\'">\'+a.1d+\'</a></P>\').1g(7(){$(4).3(\'O\');$(4).o(\'9-3-N\')}).1i(7(){$(4).3(\'u\');$(4).G(\'9-3-N\')}).1l(7(){$(4).3(\'r\')}).6(\'3\',a))};8 f=$(\'<P V="9-3 q-\'+a.w+\'"><a 14="\'+(4.14||4.1p)+\'">\'+4.1p+\'</a></P>\');e.1c(f);5(4.11)f.S(\'11\',4.11);5(4.1r)f.o(4.1r);5(a.1F)a.t=2;5(A a.t==\'1u\'&&a.t>0){8 g=($.n.10?f.10():0)||a.1w;8 h=(a.z%a.t),Y=1y.1z(g/a.t);f.10(Y).1A(\'a\').1B({\'1C-1D\':\'-\'+(h*Y)+\'1E\'})};5(a.m)f.o(\'9-3-1o\');x f.o(\'9-3-1G\').1g(7(){$(4).3(\'1n\');$(4).3(\'D\')}).1i(7(){$(4).3(\'u\');$(4).3(\'C\')}).1l(7(){$(4).3(\'r\')});5(4.L)a.p=f;l.1q();l.1N(7(){$(4).3(\'r\')});f.6(\'3.l\',l.6(\'3.9\',f));a.F[a.F.Q]=f[0];a.v[a.v.Q]=l[0];a.q=d[b]=e;a.1O=c;l.6(\'3\',a);e.6(\'3\',a);f.6(\'3\',a);c.6(\'3\',d)});$(\'.3-15-T-17\').3(\'u\').G(\'3-15-T-17\');k 4};$.12($.n.3,{K:0,D:7(){8 a=4.6(\'3\');5(!a)k 4;5(!a.D)k 4;8 b=$(4).6(\'3.l\')||$(4.U==\'13\'?4:s);5(a.D)a.D.y(b[0],[b.M(),$(\'a\',b.6(\'3.9\'))[0]])},C:7(){8 a=4.6(\'3\');5(!a)k 4;5(!a.C)k 4;8 b=$(4).6(\'3.l\')||$(4.U==\'13\'?4:s);5(a.C)a.C.y(b[0],[b.M(),$(\'a\',b.6(\'3.9\'))[0]])},1n:7(){8 a=4.6(\'3\');5(!a)k 4;5(a.m)k;4.3(\'O\');4.1a().19().X(\'.q-\'+a.w).o(\'9-3-N\')},O:7(){8 a=4.6(\'3\');5(!a)k 4;5(a.m)k;a.q.1V().X(\'.q-\'+a.w).G(\'9-3-1k\').G(\'9-3-N\')},u:7(){8 a=4.6(\'3\');5(!a)k 4;4.3(\'O\');5(a.p){a.p.6(\'3.l\').S(\'L\',\'L\');a.p.1a().19().X(\'.q-\'+a.w).o(\'9-3-1k\')}x $(a.v).1m(\'L\');a.E[a.m||a.1Y?\'1q\':\'1Z\']();4.20()[a.m?\'o\':\'G\'](\'9-3-1o\')},r:7(a,b){8 c=4.6(\'3\');5(!c)k 4;5(c.m)k;c.p=s;5(A a!=\'B\'){5(A a==\'1u\')k $(c.F[a]).3(\'r\',B,b);5(A a==\'1h\')$.W(c.F,7(){5($(4).6(\'3.l\').M()==a)$(4).3(\'r\',B,b)})}x c.p=4[0].U==\'13\'?4.6(\'3.9\'):(4.22(\'.q-\'+c.w)?4:s);4.6(\'3\',c);4.3(\'u\');8 d=$(c.p?c.p.6(\'3.l\'):s);5((b||b==B)&&c.1e)c.1e.y(d[0],[d.M(),$(\'a\',c.p)[0]])},m:7(a,b){8 c=4.6(\'3\');5(!c)k 4;c.m=a||a==B?H:J;5(b)$(c.v).S("R","R");x $(c.v).1m("R");4.6(\'3\',c);4.3(\'u\')},1x:7(){4.3(\'m\',H,H)},24:7(){4.3(\'m\',J,J)}});$.n.3.1s={E:\'25 26\',1d:\'\',t:0,1w:16};$(7(){$(\'l[27=28].9\').3()})})(1j);',62,135,'|||rating|this|if|data|function|var|star|||||||||||return|input|readOnly|fn|addClass|current|rater|select|null|split|draw|inputs|serial|else|apply|count|typeof|undefined|blur|focus|cancel|stars|removeClass|true|arguments|false|calls|checked|val|hover|drain|div|length|disabled|attr|be|tagName|class|each|filter|spw|_|width|id|extend|INPUT|title|to||drawn|call|andSelf|prevAll|metadata|append|cancelValue|callback|applied|mouseover|string|mouseout|jQuery|on|click|removeAttr|fill|readonly|value|hide|className|options|document|number|replace|starWidth|disable|Math|floor|find|css|margin|left|px|half|live|execCommand|try|msie|BackgroundImageCache|browser|catch|change|context|before|control|span|meta|makeArray|slice|children|body|form|required|show|siblings|unnamed|is|name|enable|Cancel|Rating|type|radio|window|not'.split('|'),0,{}))

// ------------------------------------


function isValidEmail(str) {

   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
 
}
// href="javascript:bookmark('www.OroSpot.com', window.location.href)
function bookmark(title,url){
   
     if (window.sidebar) {
        // firefox
	    window.sidebar.addPanel(title, url, "");
    }
    else {
        if((window.opera && window.print) || navigator.userAgent.toLowerCase().indexOf('chrome') > -1 ){ 
           
            // opera
	        var elem = document.createElement('a');
	        elem.setAttribute('href',url);
	        elem.setAttribute('title',title);
	        elem.setAttribute('rel','sidebar');
	        elem.click();
        }     
        else {
            if(document.all) 
                // ie
	            window.external.AddFavorite(url, title);
        }
    }
}
  
 
function popRequestInfo(sku) {

var txt = '<span style="font-size: 15px">Please submit your questions.</span><br><span style="color: gray">Fields marked with <span style="color:red">*</span> are required.<br></span><table><col width="150px"><col width="350px"><tr><td>Name&nbsp;<span style="color:red;">*</span></td><td><input type="textbox" id="popname" name="popname" style="width: 300px" ></td></tr><tr><td>Email&nbsp;<span style="color:red;">*</span></td><td><input type="textbox" id="popemail" name="popemail" style="width: 300px"></td></tr><tr><td>Phone&nbsp;</td><td><input type="textbox" id="popphone" name="popphone" style="width: 300px"></td></tr><tr><td>Sku#&nbsp;<span style="color:red;">*</span></td><td><input type="textbox" id="popsku" name="popsku" style="width: 100px" value="' +  sku +'" disabled></td></tr><tr><td valign="top">Question&nbsp;<span style="color:red;">*</span></td><td><textarea type="textbox" id="popquestion" name="popquestion" style="height:100px; width: 300px; resize: none">I would like to receive more information about this product.</textarea></td></tr></table>';

$.prompt(txt,{
      buttons:{Cancel:false,Send:true}, focus: 1, submit: popRequestInfoSubmit }); 

return false;

}; 

function popRequestInfoSubmit(btn,m,f){
      if (btn == true) {
        if (isValidEmail(f.popemail) == false || f.popname.length == 0 || f.popemail.length == 0 || f.popquestion.length == 0) {
            alert("Please enter name, email address and question.");
            return false;
        }
        else {
            PageMethods.enotify(f.popemail,'Product Information Request',document.location.href + '\n' +f.popname + '\n'  +  f.popphone + '\n\n' + f.popquestion);
            return true;
           
        }
             
      }
}


function popRequestNewsletter() {

var txt = '<span style="font-size: 15px">Sign up for discount/newsletter.</span><br><span style="color: gray">Fields marked with <span style="color:red">*</span> are required.<br></span><table><col width="150px"><col width="350px"><tr><td>Name&nbsp;<span style="color:red;">*</span></td><td><input type="textbox" id="popname" name="popname" style="width: 300px" maxlength="100" ></td></tr><tr><td>Email&nbsp;<span style="color:red;">*</span></td><td><input type="textbox" id="popemail" name="popemail" style="width: 300px" maxlength="50"></td></tr><tr><td valign="top">Comment&nbsp;<span style="color:red;">*</span></td><td><textarea type="textbox" id="popcomment" name="popcomment" style="height:100px; width: 300px" maxlength="500">I would like to sign up for discount/newsletter.</textarea></td></tr></table>';

$.prompt(txt,{
      buttons:{Cancel:false,Send:true}, focus: 1, submit: popNewsletterSubmit }); 

return false;

}; 

function popNewsletterSubmit(btn,m,f){
      if (btn == true) {
        if (isValidEmail(f.popemail) == false || f.popname.length == 0 || f.popemail.length == 0 || f.popcomment.length == 0) {
            alert("Please enter name, email address and comment.");
            return false;
        }
        else {
            PageMethods.enotifynewsletter(f.popemail,f.popname,f.popcomment,'Discount/Newsletter Sign-Up',document.location.href + '\n' +f.popname + '\n'  +  '\n\n' + f.popcomment);
            return true;
           
        }
             
      }
} 

function popFeedback(sku) {

var txt = '<span style="font-size: 15px">Please rate this product.</span><input type="hidden" id="popsku" name="popsku" value="' +  sku +'" /><br><table><col width="150px"><col width="350px"><tr><td>Stars&nbsp;<span style="color:red;">*</span></td><td><input name="poprating" type="radio" class="star" value="1" /><input name="poprating" type="radio" class="star" value="2"/><input name="poprating" type="radio" class="star" value="3"/><input name="poprating" type="radio" class="star" value="4"/><input name="poprating" type="radio" class="star" value="5" checked="checked"/></td></tr><tr><td>Subject&nbsp;<span style="color:red;">*</span></td><td><input type="textbox" id="popsubject" name="popsubject" style="width: 300px" maxlength="500"></td></tr><tr><td valign="top">Feedback&nbsp;<span style="color:red;">*</span></td><td><textarea type="textbox" id="popfeedback" name="popfeedback" style="height:100px; width: 300px; resize: none" maxlength="2000"></textarea></td></tr></table>';

$.prompt(txt,{
      buttons:{Cancel:false,Send:true}, focus: 1, submit: popFeedbackSubmit }); 

$.fn.rating.options = { required: true	};			
$('input[type=radio].star').rating();

return false;

}; 

function popFeedbackSubmit(btn,m,f){
      if (btn == true) { 
        if (f.popsubject.length == 0 || f.popfeedback.length == 0) {
            alert("Please enter subject and feedback.");
            return false;
        }
        else {             
            PageMethods.enotifyfeedback(f.popsku,f.poprating,f.popsubject,f.popfeedback);
            alert("Thank you for submitting feedback.");
            return true;
           
        }
             
      }
}

function getJSvars(script_name, var_name, if_empty) {

var script_elements = document.getElementsByTagName('script');

if(if_empty == null) { var if_empty =''; }

for (a = 0; a < script_elements.length; a++) {
   var source_string = script_elements[a].src;
 
   if(source_string.indexOf(script_name)>=0) {

       var_name = var_name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
       var regex_string = new RegExp("[\\?&]"+var_name+"=([^&#]*)");
       var parsed_vars = regex_string.exec(source_string);
       if(parsed_vars == null) { return if_empty; }
       else { return parsed_vars[1]; }

      }
   }
}


function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return curleft + ',' + curtop;
}

// -------------------

 
$(document).ready(function() {
 

 try {   if ($.browser.msie) {$(".top_right").corner("bl 10px"); }  } catch (ex) {  };

  	   
// #top_cat_section 

$("#top_cat_section div.parent_category_top, #top_cat_section div.parent_category, #left_cat_section div.parent_category").shadow({
           width: 5,
           startOpacity:60,
           endOpacity:10,
           cornerHeight:8,
           color:"#000000"
       });


 $('#mainPicList').innerfade({   
       	  animationtype: 'fade',
    	  speed: 1500, 
    	  timeout: 7000,
          type: 'sequence' 
       });   


  if(!($.browser.msie && $.browser.version=="6.0") && !($.browser.msie && document.location.protocol == "https:") ) {
          $("#aimstatus").attr("src","http://big.oscar.aol.com/orospot?on_url=http://www.orospot.com/images/online.png&off_url=http://www.orospot.com/images/offline.png&rnd=" +  (Math.random() * (1000 - 1) + 1) );
          $("#aimstatus").click( function() { window.open ('/chat.aspx','Chat','menubar=0,location=0,resizable=0,scrollbars=0,width=315,height=300')  } );
  }
    

    var cache= new Array();

   /* $("img.preview").hover(function(e){ 
            if ($("#preview").length == 0) { $("body").append("<div id='preview'></div>"); }								 

            var sku= $(this).attr("sku");
	        if (cache[sku] == undefined) {
	          $("#preview").load("/product_popup.aspx", "sku=" + sku, function () {  cache[sku]=$("#preview").html();  } ); 	
            } else {
          	    $("#preview").html(cache[sku]);
          	      
            }
            
		   // $("#preview").css("top",$(this).offset().top  + "px");	
            if ($(this).offset().top +  $("#preview").outerHeight() >= $(window).height() ) 
                $("#preview").css("top",$(this).offset().top - $("#preview").outerHeight());
            else 
                $("#preview").css("top",$(this).offset().top + "px");
                   
        
	        if ($(this).offset().left + $(this).outerWidth() + $("#preview").width() >= $(window).width() ) 
	            $("#preview").css("left",$(this).offset().left - $("#preview").outerWidth());
	         else  
	            $("#preview").css("left",$(this).offset().left  + $(this).width() + "px");
	        
            
            $("#preview").fadeIn('fast');
    		    
        },
	    function(){
           $("#preview").hide();
    		
	       }
	    );
*/


            $("img.preview").live("mouseenter", function(e){ 
	                
                    if ($("#preview").length == 0) { $("body").append("<div id='preview'></div>"); }								 
                                
                    var sku= $(this).attr("sku");
	                if (cache[sku] == undefined) 
	                  $("#preview").load("/product_popup.aspx", "sku=" + sku, function () {  cache[sku]=$("#preview").html(); } );	
                    else 
          	            $("#preview").html(cache[sku]);
                   

                    if ($(this).offset().top +  $("#preview").outerHeight() >= $(window).height() ) 
                         $("#preview").css("top",$(this).offset().top - $("#preview").outerHeight());
                    else 
                         $("#preview").css("top",$(this).offset().top + "px");
                                        
                    
		            //$("#preview").css("top",$(this).offset().top  + "px");	

	                if ($(this).offset().left + $(this).width() + $("#preview").width() >= $(window).width() ) 
	                    $("#preview").css("left",$(this).offset().left - $("#preview").outerWidth());
	                else  
	                    $("#preview").css("left",$(this).offset().left  + $(this).width() + "px");
	                
	        	   
	                $("#preview").fadeIn('fast');	        	   
            		    
            } ); 
                
            $("img.preview").live("mouseleave", function(e){ $("#preview").hide(); } );  
 } );

