function setBookmark(url,str){
	if (str=='') {
		str=url;
	}
	if (document.all) {
		window.external.AddFavorite(url,str);
	} else {
		alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');
	}
}

function wOpen(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=580,height=460');");
}

function galleryOpen(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=590,height=515');");
}

function LiveChat(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=400');");
}

function featureOpen(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=400');");
}

function Open(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=760,height=550');");
}

function mailpage()
	{
	mail_str = "mailto:?subject=byreklam hakkinda.";
	mail_str += "&body=I found some information on byreklam.com that I thought was worth sharing.";
	mail_str += " Check it out here:  " + location.href + "."; 
	location.href = mail_str;
	//Syntax for the link: <a href="iletisim.html">Email This Page</a>
	}

var gAutoPrint = true; // Flag for whether or not to automatically call the print function
function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		html += '\n</HE' + 'AD>\n<BODY bgcolor=\"#FFFFFF\" background=\"/images/printpage.gif\">\n';
		html += '<div id=\"printPage\">\n<table width=\"750\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"PADDING-LEFT: 20px; PADDING-TOP: 20px; PADDING-RIGHT: 20px; \">\n'
		html += '<img src=\"/images/identity_left.gif\"><hr size=\"1\" color=\"#E5E5E5\">\n'
		html += '</td></tr></table>\n'
		html += '<table width=\"645\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"PADDING-LEFT: 20px; PADDING-TOP: 20px; PADDING-RIGHT: 20px; \">\n'
		var printReadyElem = document.getElementById("printReady");
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
		html += '<br /><hr size=\"1\" color=\"#E5E5E5\"><br />Byreklam NETWORK - http://www.byreklam.com/<br />Copyright &copy; 2007 byreklam.com All Rights Reserved<br /></td></tr></table>\n</div>\n'
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}