function roundNumber(num,dec){var result=Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);return result}function resPrint(){var scrWidth=screen.width;var scrHeight=screen.height;var scrRatio=roundNumber(scrWidth/scrHeight,2);var resPrint="<span id='respri';>Your display features</span><span>Aspect Ratio: <strong>";if(scrRatio==1.25||scrRatio==1.33){resPrint+="Standard 4:3"}else if(scrRatio==1.6||scrRatio==1.67){resPrint+="Wide 8:5"}else if(scrRatio==1.78){resPrint+="HD 16:9"}else if(scrRatio==1.76){resPrint+="Mobile PSP"}else if(scrRatio==0.75||(scrRatio==1.33&&scrWidth<=640)){resPrint+="Mobile VGA"}else if(scrRatio==0.6||(scrRatio==1.67&&scrWidth<=800)){resPrint+="Mobile WVGA"}else if(scrRatio==0.67||(scrRatio==1.5&&scrWidth==480)){resPrint+="Mobile iPhone"}else if(scrRatio==0.8){resPrint+="Mobile Phone"}else{resPrint="Unknown"}resPrint+="</strong></span><span> Resolution: <strong>"+scrWidth+" x "+scrHeight+"</strong></span>";document.write(resPrint)}

jQuery.noConflict();
jQuery(function($){ 
// Guide here Remove "//" to activate function example here from this text "//$('#login-in')...." to "$('#login-in').." --- Juse remove two backslash(//) from js function

// sidebar socialbookmarks slidding
$(function() {var offset=$("#floating_panel").offset();var topPadding=0;$(window).scroll(function(){if($(window).scrollTop()>offset.top){$("#floating_panel").stop().animate({marginTop:$(window).scrollTop()-offset.top+topPadding})}else{$("#floating_panel").stop().animate({marginTop:0})}});});

// tab effects for featured wallpapers and others
$(".subtabz_content").hide();$("ul.subtabzs li:first").addClass("active").show();$(".subtabz_content:first").show();$("ul.subtabzs li").click(function(){$("ul.subtabzs li").removeClass("active");$(this).addClass("active");$(".subtabz_content").hide();var activeTab=$(this).find("a").attr("href");$(activeTab).fadeIn();return false});

//.Top login planel slidedown | THis is function comment dont remove this .
$('#log-in').click(function(){$('#login').slideToggle();});

// ratting info side up effect in wallpapers thumb | THis is function comment dont remove this .
$('#hovereffects').hover(function(){if($("span.mini-rating, div.control-panel").is(":hidden")){$("span.mini-rating, div.control-panel").show("hide")}else{$("span.mini-rating, div.control-panel").slideUp()}});

});
