
// 마우스 클릭시 점선없애기 
function bluring(){  
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();  
}  
document.onfocusin=bluring;

//  바로가기 새창 안내
function go_page(url) {
    if(url != "") window.open(url, "", "");
}

//IE 패치 대응 : 20060411
function swf(src,w,h) {
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="swliveconnect" value="true">';
	html += '<param name="menu" value="false">';
	html += '<param name="wmode" value="transparent">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

// 오버추어
var ysm_accountid  = "19S8BPCI9PF3PBSSR6A2L610PO8";
document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' " 
+ "SRC=//" + "srv3.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid 
+ "></SCR" + "IPT>");

// 즐겨찾기 추가
function addbookmark() {
    bookmarkurl="http://www.intrise.co.kr/"
    bookmarktitle="(주)인트라이즈 진공포장기계"
        if (document.all)
            window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

/*
//오른쪽 마우스 드래그 금지(파폭) 
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
} 


// 마우스 오른쪽 사용금지
var clickmessage='이미지 위에서는 마우스 오른쪽 버튼을 사용할 수 없습니다.'
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()


// 마우스 오른쪽 버튼 금지
function right(e) {  
if (navigator.appName == 'Netscape' &&  
(e.which == 3 || e.which == 2))  
return false;  
else if (navigator.appName == 'Microsoft Internet Explorer' &&  
(event.button == 2 || event.button == 3)) {  
alert("마우스의 오른쪽 버튼을 사용하실 수 없습니다.");  
return false;  
}  
return true;  
}  
document.onmousedown=right;  
if (document.layers) window.captureEvents(Event.MOUSEDOWN);  
window.onmousedown=right;  


//ctrl 금지  if((event.ctrlKey) || (event.shiftKey) || (event.altKey))...로 추가 가능
function click() {
 if((event.ctrlKey)) {
   alert('Ctrl키는 사용하실 수 없습니다.');
 }
}
document.onkeydown=click; 

*/
