function openPopUp(href, target, width, height)
{
	window.open(href, target, 'width=' + width + ', height=' + height + ', top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_520x390(href, target)
{
	return openPopUp(href, target, "520", "390");
}
function getSWF(swWidth, swHeight, swFile, swWmode)
{
	var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='+swWidth+'  height='+swHeight+'>';
	str += ' <param name="movie" value="'+swFile+'" /> ';
	str += ' <param name="quality" value="high" /> ';
	str += ' <param name="wmode" value="'+swWmode+'" /> ';
	str += ' <embed src='+swFile+' width='+swWidth+' height='+swHeight+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> ';
	str += ' </object> ';
	document.write(str);
}
function heightOptimizer()
{
	var _height = document.getElementById('base_right').offsetHeight;

	if(_height < document.getElementById('base_left').offsetHeight)
	_height = document.getElementById('base_left').offsetHeight;
	
	if(_height < document.getElementById('base_middle').offsetHeight)
	_height = document.getElementById('base_middle').offsetHeight;
	
	_height = _height + 20;
	document.getElementById('base').style.height = _height + "px";
	document.getElementById('base_left').style.height = _height + "px";
	document.getElementById('base_middle').style.height = _height + "px";
	document.getElementById('base_right').style.height = _height + "px";
}
function titleCleanBookmark()
{
	var title = document.title;

	tmp = title.split("haberi");
	title = tmp[0];

	while ( title.indexOf("'") != -1 )
	{
		title = title.replace("'", "");
	}

	return title;
}
function showBookmark()
{
	var title = titleCleanBookmark();
	var url = encodeURIComponent(document.location.href);

	document.write('<div class="clearfix" style="margin: 5px 0px;">');

	document.write('<div style="float: left;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="' + title + '" data-url="' + document.location.href + '" >Tweet</a><sc' + 'ript type="text/javascript" src="http://platform.twitter.com/widgets.js"></' + 'script></div>');

	document.write('<div style="float: left; margin-left: 10px;"><iframe src="http://www.facebook.com/plugins/like.php?href=' + url + '&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=recommend&amp;font=verdana&amp;colorscheme=light&amp;height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:30px;" allowTransparency="true"></iframe></div>');
	
	document.write('</div>');
}

