function unique_requestid() {
	var timestamp = Number(new Date()).toString();
	var random = Math.random() * (Math.random() * 100000 * Math.random() );
	var unique = new String();
	unique = timestamp + random;
	return unique;
}

$(document).ready(function(){
	$.extend({
	  getUrlVars: function(){
		var vars = [], hash;
		var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('&');
		for(var i = 0; i < hashes.length; i++)
		{
		  hash = hashes[i].split('=');
		  vars.push(hash[0]);
		  vars[hash[0]] = hash[1];
		}
		return vars;
	  },
	  getUrlVar: function(name){
		return $.getUrlVars()[name];
	  }
	});
		
        $(document).pngFix(); 
		
		//$('a.link[title]').qtip({
//			style: { 
//				name: 'light',
//				tip: 'topLeft',
//				fontSize: '0.7em'
//			},
//			position: { target: 'mouse' }
//		});
//		
//		$('div.result_image[title]').qtip({
//			style: { 
//				name: 'light',
//				tip: 'topLeft',
//				fontSize: '0.7em'
//
//			},
//			position: { target: 'mouse' }
//		});
//		
//		$('div.image a[title]').qtip({
//			style: { 
//				name: 'light',
//				tip: 'topLeft',
//				fontSize: '0.7em'
//
//			},
//			position: { target: 'mouse' }
//		});
		
		// assign a click event to the exposed element, using normal jQuery coding 
    	$(".expose").click(function() { 
 
			// perform exposing for the clicked element 
			$(this).expose({api: true}).load(); 
 
    	}); 
		
		$('ul.sf-menu').superfish({autoArrows:  false, delay: 200, speed: 'fast'});
		
		$('#random_posts').cycle({ 
			fx:    'fade', 
			speed:  2500,
			delay: 4000
		 });
});
