function CheckIsIE()
{
	
	
if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER' ) { return true;}
else { return false; }
}
function PrintThisPage()
{

	if (CheckIsIE() == true)
	{
	document.toprint.focus();
	document.toprint.print();
	}
	else
	{
	window.frames['toprint'].focus();
	window.frames['toprint'].print();
	} 
}
jQuery.jPrintArea=function(el)
{
	
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if(is_chrome){
	
	window.print();
}
else {
removeFrame();
var iframe=document.createElement('IFRAME');
var doc=null;
$(iframe).attr('style','position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
//$(iframe).attr('style','position:absolute;width:1110px;height:1110px;left:0px;top:0px;z-index:999');
$(iframe).attr('name','toprint');
//$(iframe).attr('src',$('#cv-details-link').text());
document.body.appendChild(iframe);
doc=iframe.contentWindow.document;
doc.write('<title>CV Powered By SyrianTalent.com</title>');
var links=window.document.getElementsByTagName('link');
for(var i=0;i<links.length;i++)
if(links[i].rel.toLowerCase()=='stylesheet')
doc.write('<link type="text/css" rel="stylesheet" href="'+links[i].href+'" media="'+links[i].media+'"></link>');
doc.write('<div id="'+$(el).attr("id")+'" class="'+$(el).attr("class")+'">'+$(el).html()+'</div>');


ie=CheckIsIE();
if(!ie)
{
	doc.write('<style>#toprint *{overflow:visible!important;float:none; position:relative} #toprint {overflow:visible!important;float:none; position:relative}</style>');
}
if(ie){
doc.write("<script type='text/javascript'>document.execCommand('print', false, null);</script>");
/*doc.write("<script type='text/javascript'>alert('lsdkfj');</script>");*/
/*doc.write("<script type='text/javascript'>window.print();</script>");*/
}

doc.close();

if(!ie){
	iframe.contentWindow.focus();
	iframe.contentWindow.print();
}
//alert('Printing...'+$(el).html());
//alert('Printing...');
//wait(1);
//document.body.removeChild(iframe);
}
return false;
}
