$(document).ready(function() {
	$.urlParam = function(name, url){
    var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(url);
    if (!results) { return 0; }
    return results[1] || 0;
  }; 
	$(".colorbox").colorbox();
	$(".demo").colorbox({iframe:true, innerWidth:'505px', innerHeight:'410px'});
	$(".screens").colorbox({opacity:0.8});
	$(".wiki_site").colorbox({width:"50%", height:"40%",inline:true, href:"#wiki_site"});
	$(".decnone").colorbox({iframe:true, innerWidth:'80%', innerHeight:'70%'});
		$(".request_upgrade").colorbox({innerWidth:function(){return $.urlParam('width', $(this).attr('href'));},
										innerHeight:function(){return $.urlParam('height', $(this).attr('href'));},
										title:false, scrolling:false, iframe:true});	
	if($.browser.msie)
	{
		$('.downloadLink').attr('href', $('#download_link').attr('value'));
	}
});




