$(document).ready(function(){
$.urlParam=function(_1,_2){
var _3=new RegExp("[\\?&]"+_1+"=([^&#]*)").exec(_2);
if(!_3){
return 0;
}
return _3[1]||0;
};
if($.colorbox!==undefined){
$(".colorbox, .screenshot").colorbox();
$(".screen").colorbox({iframe:true,innerHeight:function(){
return $.urlParam("height",$(this).attr("href"));
},innerWidth:function(){
return $.urlParam("width",$(this).attr("href"));
}});
$(".contact_request2, .screenshot2, .overlay_request").colorbox({innerWidth:function(){
return $.urlParam("width",$(this).attr("href"));
},innerHeight:function(){
return $.urlParam("height",$(this).attr("href"));
},title:false,scrolling:false,iframe:true,href:function(){
return $(this).attr("href");
}});
}
$("#device_selector").bind("change",function(){
if($(this).val()!==""){
$("#go_btn").removeClass("go_btn_disable").attr("href",$(this).val());
}else{
$("#go_btn").addClass("go_btn_disable").attr("href","#");
}
});
$(".show_more_options").bind("click",function(){
$(".tohide:visible").fadeOut("fast");
$(".tohide:hidden").fadeIn("fast");
var _4=$(this).html();
var _5=$(this).attr("rev");
$(this).html(_5).attr("title",_5).attr("rev",_4);
return false;
});
});

