/*
 * Version: project_skeleton-28-gc86939c
 * Date: 2011-07-21 18:41
 */

(function(){var b={};b.array={};b.array.isArray=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};b.array.indexOf=function(a,c){if(c.indexOf)return c.indexOf(a);for(var d=0,g=c.length;d<g;d++)if(c[d]===a)return d;return-1};b.array.map=null;b.array.map=Array.prototype.map?function(a,c,d){return Array.prototype.map.call(a,c,d)}:function(a,c,d){if(a===void 0||a===null)throw new TypeError;a=Object(a);var g=a.length>>>0;if(typeof c!=="function")throw new TypeError;
for(var h=Array(g),f=0;f<g;f++)if(f in a)h[f]=c.call(d,a[f],f,a);return h};b.array.clean=function(a){for(var c=[],d=0;d<a.length;d++)a[d]&&c.push(a[d]);return c};b.string={};b.string.supplant=function(a,c){return a.replace(/\|([^|]*)\|/g,function(d,g){var h=c[g];return typeof h==="string"||typeof h==="number"?h:d})};b.string.ucfirst=function(a){a+="";return a.charAt(0).toUpperCase()+a.substr(1)};b.object={};b.object.size=function(a){var c=0,d;for(d in a)a.hasOwnProperty(d)&&c++;return c};b.object.traverse=
function(a,c){for(i in a){c.apply(this,[i,a[i]]);typeof a[i]==="object"&&this.traverse(a[i],c)}};b.object.keys=Object.keys||function(a){var c=[],d;for(d in a)a.hasOwnProperty(d)&&c.push(d);return c};b.object.deepKeys=Object.keys||function(a){var c=[],d;for(d in a)c.push(d);return c};b.object.object=b.object.clone=function(a){function c(){}c.prototype=a;return new c};b.object.extend=function(){var a=arguments[0]||{},c=1,d=arguments.length,g=false,h,f,l,j;if(typeof a==="boolean"){g=a;a=arguments[1]||
{};c=2}if(typeof a!=="object"&&!jQuery.isFunction(a))a={};if(d===c){a=this;--c}for(;c<d;c++)if((h=arguments[c])!=null)for(f in h){l=a[f];j=h[f];if(a!==j)if(g&&j&&(jQuery.isPlainObject(j)||jQuery.isArray(j))){l=l&&(jQuery.isPlainObject(l)||jQuery.isArray(l))?l:jQuery.isArray(j)?[]:{};a[f]=jQuery.extend(g,l,j)}else if(j!==undefined)a[f]=j}return a};b.functions={};b.functions.clone=function(a){var c=function(){return a.apply(this,arguments)};c.prototype=b.object.clone(a.prototype);for(property in a)if(a.hasOwnProperty(property)&&
property!=="prototype")c[property]=a[property];return c};b.gen={};b.gen.error=function(a,c){o={};o.error=a;if(typeof c!=="undefined")for(var d in c)if(c.hasOwnProperty(d))o[d]=c[d];return o};if(typeof module==="object"&&typeof module.exports==="object")b.object.extend(exports,b);else this.theosp=b})();
(function(){var b={};b.unescapeBuffer=decodeURIComponent;b.unescape=function(c,d){return b.unescapeBuffer(c,d).toString()};b.escape=function(c){return encodeURIComponent(c)};var a=function(c){switch(typeof c){case "string":return c;case "boolean":return c?"true":"false";case "number":return isFinite(c)?c:"";default:return""}};b.stringify=b.encode=function(c,d,g,h){d=d||"&";g=g||"=";c=c===null?undefined:c;switch(typeof c){case "object":return theosp.array.map(theosp.object.keys(c),function(f){return theosp.array.isArray(c[f])?
c[f].map(function(l){return b.escape(a(f))+g+b.escape(a(l))}).join(d):b.escape(a(f))+g+b.escape(a(c[f]))}).join(d);default:return h?b.escape(a(h))+g+b.escape(a(c)):""}};b.parse=b.decode=function(c,d,g){d=d||"&";g=g||"=";var h={};if(typeof c!=="string")return h;c=c.split(d);for(d=0;d<c.length;d++){var f=c[d].split(g),l=b.unescape(f[0],true);f=b.unescape(f.slice(1).join(g),true);if(l in h)if(theosp.array.isArray(h[l]))h[l].push(f);else h[l]=[h[l],f];else h[l]=f}return h};this.NODE_QUERY_STRING=b})();
(function(){var b=/^([a-z0-9]+:)/,a=/:[0-9]+$/,c=["/","?",";","#"],d={file:true,"file:":true},g={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true},h=NODE_QUERY_STRING;this.NODE_URL={parse:function(f,l,j){if(f&&typeof f==="object"&&f.href)return f;var n={href:f};f=f;var k=b.exec(f);if(k){k=k[0];n.protocol=k;f=f.substr(k.length)}if(j||k||f.match(/^\/\/[^@\/]+@[^@\/]+/)){var e=f.substr(0,2)==="//";if(e&&!(k&&d[k])){f=f.substr(2);n.slashes=
true}}if(!d[k]&&(e||k&&!g[k])){j=-1;e=0;for(k=c.length;e<k;e++){var m=f.indexOf(c[e]);if(m!==-1&&(j<0||m<j))j=m}if(j!==-1){n.host=f.substr(0,j);f=f.substr(j)}else{n.host=f;f=""}e=n.host;j={};k=e.indexOf("@");if(k!==-1){j.auth=e.substr(0,k);e=e.substr(k+1)}if(k=a.exec(e)){k=k[0];j.port=k.substr(1);e=e.substr(0,e.length-k.length)}if(e)j.hostname=e;m=theosp.object.keys(j);e=0;for(k=m.length;e<k;e++){var p=m[e];n[p]=j[p]}n.hostname=n.hostname||""}j=f.indexOf("#");if(j!==-1){n.hash=f.substr(j);f=f.slice(0,
j)}j=f.indexOf("?");if(j!==-1){n.search=f.substr(j);n.query=f.substr(j+1);if(l)n.query=h.parse(n.query);f=f.slice(0,j)}else if(l)n.query={};if(f)n.pathname=f;return n}}})();EventEmitter=function(){};var isArray=theosp.array.isArray,indexOf=theosp.array.indexOf;
EventEmitter.prototype.emit=function(b){if(b==="error")if(!this._events||!this._events.error||isArray(this._events.error)&&!this._events.error.length)if(arguments[1]instanceof Error)throw arguments[1];else throw Error("Uncaught, unspecified 'error' event.");if(!this._events)return false;var a=this._events[b];if(!a)return false;if(typeof a=="function"){if(arguments.length<=3)a.call(this,arguments[1],arguments[2]);else{var c=Array.prototype.slice.call(arguments,1);a.apply(this,c)}return true}else if(isArray(a)){c=
Array.prototype.slice.call(arguments,1);a=a.slice();for(var d=0,g=a.length;d<g;d++)a[d].apply(this,c);return true}else return false};EventEmitter.prototype.addListener=function(b,a){if("function"!==typeof a)throw Error("addListener only takes instances of Function");if(!this._events)this._events={};this.emit("newListener",b,a);if(this._events[b])if(isArray(this._events[b]))this._events[b].push(a);else this._events[b]=[this._events[b],a];else this._events[b]=a;return this};
EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(b,a){var c=this,d=function(){c.removeListener(b,d);a.apply(this,arguments)};c.on(b,d);return this};
EventEmitter.prototype.removeListener=function(b,a){if("function"!==typeof a)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[b])return this;var c=this._events[b];if(isArray(c)){var d=indexOf(a,c);if(d<0)return this;c.splice(d,1);c.length==0&&delete this._events[b]}else this._events[b]===a&&delete this._events[b];return this};EventEmitter.prototype.removeAllListeners=function(b){if(b&&this._events&&this._events[b])this._events[b]=null;return this};
EventEmitter.prototype.listeners=function(b){if(!this._events)this._events={};this._events[b]||(this._events[b]=[]);isArray(this._events[b])||(this._events[b]=[this._events[b]]);return this._events[b]};
(function(b){b.ModesManager=function(a){if(typeof a==="undefined")a={};this.options={};b.extend(this.options,this.default_options,a);this.modes_elements=[];this.modes={}};b.ModesManager.prototype=new EventEmitter;b.ModesManager.prototype.constructor=b.ModesManager;b.ModesManager.prototype.default_options={modes_prefix:"mode-",modes_suffix:"-mode"};b.ModesManager.prototype.modes_classes_template=function(a){return this.options.modes_prefix+a+this.options.modes_suffix};b.ModesManager.prototype.setMode=
function(a){if(typeof a!=="undefined")if(!this.hasMode(a)){this.modes[a]=true;var c=Array.prototype.slice.call(arguments,1),d=c.slice(0);c=c.slice(0);d.unshift("before_set_mode_"+a);c.unshift("after_set_mode_"+a);this.emit.apply(this,d);for(var g=0;g<this.modes_elements.length;g++){d=this.modes_elements[g];d.addClass(this.modes_classes_template(a))}this.emit.apply(this,c)}};b.ModesManager.prototype.unsetMode=function(a){if(typeof a!=="undefined")if(this.hasMode(a)){delete this.modes[a];var c=Array.prototype.slice.call(arguments,
1),d=c.slice(0);c=c.slice(0);d.unshift("before_unset_mode_"+a);c.unshift("after_unset_mode_"+a);this.emit.apply(this,d);for(var g=0;g<this.modes_elements.length;g++){d=this.modes_elements[g];d.removeClass(this.modes_classes_template(a))}this.emit.apply(this,c)}};b.ModesManager.prototype.toggleMode=function(a){this.hasMode(a)?this.unsetMode(a):this.setMode(a)};b.ModesManager.prototype.hasMode=function(a){if(a in this.modes)return true;return false};b.ModesManager.prototype.addModesElement=function(){for(var a,
c=0;c<arguments.length;c++){a=arguments[c];for(var d in this.modes)this.modes.hasOwnProperty(d)&&a.addClass(this.modes_classes_template(d));this.modes_elements.push(a)}}})(jQuery);if(!this.JSON)this.JSON={};
(function(){function b(n){return n<10?"0"+n:n}function a(n){g.lastIndex=0;return g.test(n)?'"'+n.replace(g,function(k){var e=l[k];return typeof e==="string"?e:"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function c(n,k){var e,m,p,s,t=h,r,q=k[n];if(q&&typeof q==="object"&&typeof q.toJSON==="function")q=q.toJSON(n);if(typeof j==="function")q=j.call(k,n,q);switch(typeof q){case "string":return a(q);case "number":return isFinite(q)?String(q):"null";case "boolean":case "null":return String(q);
case "object":if(!q)return"null";h+=f;r=[];if(Object.prototype.toString.apply(q)==="[object Array]"){s=q.length;for(e=0;e<s;e+=1)r[e]=c(e,q)||"null";p=r.length===0?"[]":h?"[\n"+h+r.join(",\n"+h)+"\n"+t+"]":"["+r.join(",")+"]";h=t;return p}if(j&&typeof j==="object"){s=j.length;for(e=0;e<s;e+=1){m=j[e];if(typeof m==="string")if(p=c(m,q))r.push(a(m)+(h?": ":":")+p)}}else for(m in q)if(Object.hasOwnProperty.call(q,m))if(p=c(m,q))r.push(a(m)+(h?": ":":")+p);p=r.length===0?"{}":h?"{\n"+h+r.join(",\n"+h)+
"\n"+t+"}":"{"+r.join(",")+"}";h=t;return p}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
g=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h,f,l={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;if(typeof JSON.stringify!=="function")JSON.stringify=function(n,k,e){var m;f=h="";if(typeof e==="number")for(m=0;m<e;m+=1)f+=" ";else if(typeof e==="string")f=e;if((j=k)&&typeof k!=="function"&&(typeof k!=="object"||typeof k.length!=="number"))throw Error("JSON.stringify");return c("",
{"":n})};if(typeof JSON.parse!=="function")JSON.parse=function(n,k){function e(p,s){var t,r,q=p[s];if(q&&typeof q==="object")for(t in q)if(Object.hasOwnProperty.call(q,t)){r=e(q,t);if(r!==undefined)q[t]=r;else delete q[t]}return k.call(p,s,q)}var m;n=String(n);d.lastIndex=0;if(d.test(n))n=n.replace(d,function(p){return"\\u"+("0000"+p.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){m=eval("("+n+")");return typeof k==="function"?e({"":m},""):m}throw new SyntaxError("JSON.parse");}})();
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(b){var a="",c,d,g,h,f,l,j=0;for(b=Base64._utf8_encode(b);j<b.length;){c=b.charCodeAt(j++);d=b.charCodeAt(j++);g=b.charCodeAt(j++);h=c>>2;c=(c&3)<<4|d>>4;f=(d&15)<<2|g>>6;l=g&63;if(isNaN(d))f=l=64;else if(isNaN(g))l=64;a=a+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(f)+this._keyStr.charAt(l)}return a},decode:function(b){var a="",c,d,g,h,f,l=0;for(b=b.replace(/[^A-Za-z0-9\+\/\=]/g,
"");l<b.length;){c=this._keyStr.indexOf(b.charAt(l++));d=this._keyStr.indexOf(b.charAt(l++));h=this._keyStr.indexOf(b.charAt(l++));f=this._keyStr.indexOf(b.charAt(l++));c=c<<2|d>>4;d=(d&15)<<4|h>>2;g=(h&3)<<6|f;a+=String.fromCharCode(c);if(h!=64)a+=String.fromCharCode(d);if(f!=64)a+=String.fromCharCode(g)}return a=Base64._utf8_decode(a)},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");for(var a="",c=0;c<b.length;c++){var d=b.charCodeAt(c);if(d<128)a+=String.fromCharCode(d);else{if(d>127&&d<2048)a+=
String.fromCharCode(d>>6|192);else{a+=String.fromCharCode(d>>12|224);a+=String.fromCharCode(d>>6&63|128)}a+=String.fromCharCode(d&63|128)}}return a},_utf8_decode:function(b){for(var a="",c=0,d=c1=c2=0;c<b.length;){d=b.charCodeAt(c);if(d<128){a+=String.fromCharCode(d);c++}else if(d>191&&d<224){c2=b.charCodeAt(c+1);a+=String.fromCharCode((d&31)<<6|c2&63);c+=2}else{c2=b.charCodeAt(c+1);c3=b.charCodeAt(c+2);a+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63);c+=3}}return a}},dateFormat=function(){var b=
/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,a=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(g,h){g=String(g);for(h=h||2;g.length<h;)g="0"+g;return g};return function(g,h,f){var l=dateFormat;if(arguments.length==1&&Object.prototype.toString.call(g)=="[object String]"&&!/\d/.test(g)){h=g;g=undefined}g=g?new Date(g):new Date;if(isNaN(g))throw SyntaxError("invalid date");
h=String(l.masks[h]||h||l.masks["default"]);if(h.slice(0,4)=="UTC:"){h=h.slice(4);f=true}var j=f?"getUTC":"get",n=g[j+"Date"](),k=g[j+"Day"](),e=g[j+"Month"](),m=g[j+"FullYear"](),p=g[j+"Hours"](),s=g[j+"Minutes"](),t=g[j+"Seconds"]();j=g[j+"Milliseconds"]();var r=f?0:g.getTimezoneOffset(),q={d:n,dd:d(n),ddd:l.i18n.dayNames[k],dddd:l.i18n.dayNames[k+7],m:e+1,mm:d(e+1),mmm:l.i18n.monthNames[e],mmmm:l.i18n.monthNames[e+12],yy:String(m).slice(2),yyyy:m,h:p%12||12,hh:d(p%12||12),H:p,HH:d(p),M:s,MM:d(s),
s:t,ss:d(t),l:d(j,3),L:d(j>99?Math.round(j/10):j),t:p<12?"a":"p",tt:p<12?"am":"pm",T:p<12?"A":"P",TT:p<12?"AM":"PM",Z:f?"UTC":(String(g).match(a)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][n%10>3?0:(n%100-n%10!=10)*n%10]};return h.replace(b,function(u){return u in q?q[u]:u.slice(1,u.length-1)})}}();
dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};
dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(b,a){return dateFormat(this,b,a)};
var HPosition={fill:0,center:1,left:2,right:3},VPosition={fill:0,center:4,top:8,bottom:12},MovePosition={absolute:0,relative:1},NavigateTarget={current:0,newtab:1,newwindow:2},ShowMode={hide:0,show:1},NewWindowBehavior={defaultBehavior:0,razossPopup:1,hostCurrentTab:2,hostNewTab:3},KeywordsType={all:0,title:1,description:2,heading:4,bold:8},rgw={version:"0.11",RazossBrowser:false,Cache:{get:function(){return window.external.rapi_Cache_Get()},set:function(b){window.external.rapi_Cache_Set(b)},query:function(b,
a){window.external.rapi_Cache_Query(b,a)}},onLoad:function(){try{this.RazossBrowser=window.external.rapi_IsRazossBrowser()!=null}catch(b){this.RazossBrowser=null}},getFrameworkVersion:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetFrameworkVersion()},getFrameworkDate:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetFrameworkDate()},log:function(){if(!this.RazossBrowser)throw"Browser Not Supported";},registerEvent:function(b,
a){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_RegisterEvent(b,a)},unregisterEvent:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_UnregisterEvent(b)},navigate:function(b,a){if(!this.RazossBrowser)throw"Browser Not Supported";if(a==undefined)a=NavigateTarget.current;window.external.rapi_Navigate(b,a)},getCurrentPage:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetCurrentURL()},
getCurrentTitle:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetCurrentTitle()},getPageKeywords:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetPageKeywords(b)},getCurrentMetadata:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetCurrentMetadata(b)},getEngineVariable:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetEngineVariable(b)},
setStorageValue:function(b,a){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_SetStorageValue(b,a)},getStorageValue:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetStorageValue(b)},isStorageValueExists:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_IsStorageValueExists(b)},executeScript:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_ExecuteScript(b)},
setNewWindowBehavior:function(b,a){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_SetNewWindowBehavior(b,a)},postPageInfo:function(b,a){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_PostPageInfo(b,a)},postPageInfoAsync:function(){if(!this.RazossBrowser)throw"Browser Not Supported";},newWindow:function(b,a,c){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_NewWindow(b,a,c)},closeWindow:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";
return window.external.rapi_CloseWindow(b)},getCurrentSize:function(){if(!this.RazossBrowser)throw"Browser Not Supported";var b=-1,a=-1;try{b=window.external.rapi_GetCurrentWidth();a=window.external.rapi_GetCurrentHeight()}catch(c){b=a=-1}return{width:b,height:a}},dock:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_Dock(b)},dockEx:function(){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_Dock(pos)},resize:function(b,a,c){if(!this.RazossBrowser)throw"Browser Not Supported";
if(c==undefined)c=true;window.external.rapi_Resize(b,a,c)},resizeKeepPosition:function(b,a,c){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_Resize(b,a,c)},show:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_Show(b)},isVisible:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_IsVisible()},close:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_Close()},
closeAllButThis:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_CloseAllButThis()},getWindowPos:function(){if(!this.RazossBrowser)throw"Browser Not Supported";},setWindowPos:function(){if(!this.RazossBrowser)throw"Browser Not Supported";},setPositionOffset:function(){},setTrasparentColor:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_SetTransparency(b)},getTrasparentColor:function(){if(!this.RazossBrowser)throw"Browser Not Supported";
return window.external.rapi_GetTransparency()},setOpacity:function(b){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_SetOpacity(b)},getOpacity:function(){if(!this.RazossBrowser)throw"Browser Not Supported";return window.external.rapi_GetOpacity()},moveWindow:function(b,a,c){if(!this.RazossBrowser)throw"Browser Not Supported";window.external.rapi_MoveWindow(b,a,c)}};rgw.onLoad();
(function(b){function a(){if(h.jStorage)try{g=n(String(h.jStorage))}catch(e){h.jStorage="{}"}else h.jStorage="{}";l=h.jStorage?String(h.jStorage).length:0}function c(){try{h.jStorage=j(g);if(f){f.setAttribute("jStorage",h.jStorage);f.save("jStorage")}l=h.jStorage?String(h.jStorage).length:0}catch(e){}}function d(e){if(!e||typeof e!="string"&&typeof e!="number")throw new TypeError("Key name must be string or numeric");return true}if(!b||!(b.toJSON||Object.toJSON||window.JSON))throw Error("jQuery, MooTools or Prototype needs to be loaded before jStorage!");
var g={},h={jStorage:"{}"},f=null,l=0,j=b.toJSON||Object.toJSON||window.JSON&&(JSON.encode||JSON.stringify),n=b.evalJSON||window.JSON&&(JSON.decode||JSON.parse)||function(e){return String(e).evalJSON()},k=false;_XMLService={isXML:function(e){return(e=(e?e.ownerDocument||e:0).documentElement)?e.nodeName!=="HTML":false},encode:function(e){if(!this.isXML(e))return false;try{return(new XMLSerializer).serializeToString(e)}catch(m){try{return e.xml}catch(p){}}return false},decode:function(e){var m="DOMParser"in
window&&(new DOMParser).parseFromString||window.ActiveXObject&&function(p){var s=new ActiveXObject("Microsoft.XMLDOM");s.async="false";s.loadXML(p);return s};if(!m)return false;e=m.call("DOMParser"in window&&new DOMParser||window,e,"text/xml");return this.isXML(e)?e:false}};b.jStorage={version:"0.1.5.0",set:function(e,m){d(e);if(_XMLService.isXML(m))m={_is_xml:true,xml:_XMLService.encode(m)};g[e]=m;c();return m},get:function(e,m){d(e);if(e in g)return typeof g[e]=="object"&&g[e]._is_xml&&g[e]._is_xml?
_XMLService.decode(g[e].xml):g[e];return typeof m=="undefined"?null:m},deleteKey:function(e){d(e);if(e in g){delete g[e];c();return true}return false},flush:function(){g={};c();try{window.localStorage.clear()}catch(e){}return true},storageObj:function(){function e(){}e.prototype=g;return new e},index:function(){var e=[],m;for(m in g)g.hasOwnProperty(m)&&e.push(m);return e},storageSize:function(){return l},currentBackend:function(){return k},storageAvailable:function(){return!!k},reInit:function(){var e;
if(f&&f.addBehavior){e=document.createElement("link");f.parentNode.replaceChild(e,f);f=e;f.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(f);f.load("jStorage");e="{}";try{e=f.getAttribute("jStorage")}catch(m){}h.jStorage=e;k="userDataBehavior"}a()}};(function(){if("localStorage"in window)try{if(window.localStorage){h=window.localStorage;k="localStorage"}}catch(e){}else if("globalStorage"in window)try{if(window.globalStorage){h=window.globalStorage[window.location.hostname];
k="globalStorage"}}catch(m){}else{f=document.createElement("link");if(f.addBehavior){f.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(f);f.load("jStorage");var p="{}";try{p=f.getAttribute("jStorage")}catch(s){}h.jStorage=p;k="userDataBehavior"}else{f=null;return}}a()})()})(window.jQuery||window.$);
(function(b){b.RazossApi=function(a){if(typeof a==="undefined")a={};this.options=theosp.object.clone(this.options);b.extend(this.options,a);this.environment=null;this.init()};b.RazossApi.prototype=new EventEmitter;b.RazossApi.prototype.constructor=b.RazossApi;b.RazossApi.prototype.options={};b.RazossApi.prototype.iframe_links_targets={"default":"defaultBehavior",popup:"razossPopup",current:"hostCurrentTab",new_tab:"hostNewTab"};b.RazossApi.prototype.navigation_targets={current_window:"Current window",
new_tab:"New tab",new_window:"New window"};b.RazossApi.prototype.navigation_targets_ids={current_window:0,new_tab:1,new_window:2};b.RazossApi.prototype.default_navigation_target="current_window";b.RazossApi.prototype.$=function(a,c){a=theosp.string.supplant(a,{prefix:this.options.css_prefix});return b(a,c)};b.RazossApi.prototype.init=function(){this.environment=rgw.RazossBrowser?"razoss_browser":typeof GM_log!=="undefined"?"greasemonkey":"direct_view";var a=this.getHostBrowser();b("html").addClass("host_browser-"+
a[0])};b.RazossApi.prototype.getUid=function(){return this.environment==="razoss_browser"?rgw.getEngineVariable("engineid"):null};b.RazossApi.prototype.version=function(){return this.environment==="razoss_browser"?rgw.getEngineVariable("engineversion"):"plugin_mode"};b.RazossApi.prototype.openUrl=function(a,c){if(typeof c==="undefined"||!(c in this.navigation_targets))c="current_window";if(this.environment==="razoss_browser")rgw.navigate(a,this.navigation_targets_ids[c]);else if(c==="current_window")document.location=
a;else if(c==="new_tab"||c==="new_window")window.open(a);return this};b.RazossApi.prototype.printScreen=function(){return this.environment==="razoss_browser"?"http://www.razoss.com/alpha/app/thumbs/"+rgw.postPageInfo("www.razoss.com","/razoss_services/razoss_uploader.php"):""};b.RazossApi.prototype.getWindowUrl=function(){return this.environment==="razoss_browser"?rgw.getCurrentPage():"http://www.razoss.com/"};b.RazossApi.prototype.getWindowTitle=function(){return this.environment==="razoss_browser"?
rgw.getCurrentTitle():"Razoss"};b.RazossApi.prototype.getWindowDescription=function(){return this.environment==="razoss_browser"?rgw.getCurrentMetadata("description"):""};b.RazossApi.prototype.setIframeLinksTarget=function(a,c){if(this.environment==="razoss_browser")if(typeof a!=="undefined"){if(typeof c==="undefined")c="default";c in this.iframe_links_targets||(c="default");rgw.setNewWindowBehavior(a,NewWindowBehavior[this.iframe_links_targets[c]])}};b.RazossApi.prototype.dock=function(a,c){if(this.environment===
"razoss_browser"){rgw.dock(HPosition[a]|VPosition[c]);document.body.style.backgroundColor=rgw.getTrasparentColor();rgw.setOpacity(255)}};b.RazossApi.prototype.getHostBrowser=function(){if(this.environment==="razoss_browser"){var a=rgw.getEngineVariable("hostbrowser").toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];if(a[1]==="msie")a[1]="ie";return[a[1],a[2]]}else return["direct",
0]};b.RazossApi.prototype.put=function(a,c){if(this.environment==="razoss_browser")rgw.setStorageValue(a,c);else b.jStorage.storageAvailable()&&b.jStorage.set(a,c)};b.RazossApi.prototype.get=function(a,c){if(typeof c==="undefined")c=null;if(this.environment==="razoss_browser"){var d=rgw.getStorageValue(a);return d===""?c:d}else{if(b.jStorage.storageAvailable())return b.jStorage.get(a,c);return c}};RAZOSS_API=new b.RazossApi;RAZOSS_API.listeners={};RAZOSS_API.getEventName=function(a){return"razoss_event_"+
a};RAZOSS_API.newRazossEventListener=function(a){var c=this;if(c.environment==="razoss_browser")if(typeof RAZOSS_API.listeners[a]==="undefined"){window[c.getEventName(a)]=function(){var d=Array.prototype.slice.call(arguments);d.unshift(c.getEventName(a));RAZOSS_API.emit.apply(c,d)};rgw.registerEvent(a,c.getEventName(a))}};RAZOSS_API.emitRazossEvent=function(a,c){c=Array.prototype.slice.call(arguments);c[0]=this.getEventName(c[0]);RAZOSS_API.emit.apply(this,c)};RAZOSS_API.onRazossEvent=function(a,
c){this.newRazossEventListener(a);this.on(this.getEventName(a),c)};RAZOSS_API.onceRazossEvent=function(a,c){this.newRazossEventListener(a);this.once(this.getEventName(a),c)};RAZOSS_API.removeRazossEventListener=function(a,c){this.newRazossEventListener(a);this.removeListener(this.getEventName(a),c)};RAZOSS_API.removeAllListeners=function(a){this.newRazossEventListener(a);this.removeListener(this.getEventName(a))};b("a.Rapi-navigate_current_window").live("click",function(){RAZOSS_API.openUrl(b(this).attr("href"),
"current_window");return false});b("a.Rapi-navigate_new_tab").live("click",function(){RAZOSS_API.openUrl(b(this).attr("href"),"new_tab");return false});b("a.Rapi-navigate_new_window").live("click",function(){RAZOSS_API.openUrl(b(this).attr("href"),"new_window");return false})})(jQuery);
(function(b){function a(k){g.className=g.className.replace(RegExp("\\b"+k+"\\b"),"")}function c(k,e){for(var m=0;m<k.length;m++)e.call(k,k[m],m)}function d(){var k=window.outerWidth||g.clientWidth;g.className=g.className.replace(/ (w|lt)-\d+/g,"");f.push("w-"+Math.round(k/100)*100);c(h.screens,function(e){k<=e&&f.push("lt-"+e)});j.feature()}var g=b.documentElement,h={screens:[320,480,640,768,1024,1280,1440,1680,1920],section:"-section",page:"-page",head:"head"},f=[];if(window.head_conf)for(var l in head_conf)if(head_conf[l])h[l]=
head_conf[l];var j=window[h.head]=function(){j.ready.apply(null,arguments)};j.feature=function(k,e,m){if(k){if(Object.prototype.toString.call(e)=="[object Function]")e=e.call();f.push((e?"":"no-")+k);j[k]=!!e;if(!m){a("no-"+k);a(k);j.feature()}return j}else{g.className+=" "+f.join(" ");f=[]}};l=navigator.userAgent.toLowerCase();l=/(webkit)[ \/]([\w.]+)/.exec(l)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(l)||/(msie) ([\w.]+)/.exec(l)||!/compatible/.test(l)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(l)||
[];if(l[1]=="msie"){l[1]="ie";if(typeof document.documentMode!=="undefined")l[2]=document.documentMode}f.push(l[1]);j.browser={version:l[2]};j.browser[l[1]]=true;if(j.browser.ie)for(var n=3;n<11;n++)parseFloat(l[2])<n&&f.push("lt-ie"+n);c("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),function(k){b.createElement(k)});c(location.pathname.split("/"),function(k,e){if(this.length>2&&this[e+1]!==undefined){if(e){var m=
this.slice(1,e+1).join("-")+h.section;f.push(m)}}else{m=k||"index";var p=m.indexOf(".");if(p>0)m=m.substring(0,p);g.id=m+h.page;e||f.push("root"+h.section)}});d();window.onresize=d;j.feature("js",true).feature()})(document);

