function changeYoutube(src,title) { 
    document.getElementById("targetArea").innerHTML = "<img src='spacer.gif' height='9px'><br><span class='font01'>" + unescape(title) +"</span><br><img src='spacer.gif' height='5px'><br><object width='360' height='296'><param name='movie' value='http://www.youtube.com/v/" + src + "&autoplay=1'></param><embed src='http://www.youtube.com/v/" + src + "&autoplay=1' type='application/x-shockwave-flash' width='360' height='296'></embed></object><br><br>"; 
}

function changeYoutube2(src,title,user_id,username) { 
    document.getElementById("targetArea").innerHTML = 
    "<img src='spacer.gif' height='9px'><br><span class='font01'>" + unescape(title) +"</span><br><img src='spacer.gif' height='5px'><br><object width='360' height='296'><param name='movie' value='http://www.youtube.com/v/" + src + "&autoplay=1'></param><embed src='http://www.youtube.com/v/" + src + "&autoplay=1' type='application/x-shockwave-flash' width='360' height='296'></embed></object><table width=457 border=0 cellspacing=0 cellpadding=0><tr><td align=right>Video by <a href='index.php?option=com_comprofiler&task=userProfile&user=" + user_id + "' target='_self' class='font02'>" + username + "</a></td></tr></table><br><br>"; 
}

function changeImg(src,title,ownername,owner,photonum) { 
		document.getElementById("targetArea").innerHTML = "<img src='spacer.gif' height='9px'><br><span class='font01'>" + unescape(title) +"</span><br><img src='spacer.gif' height='5px'><br><div style='width:457px;overflow-x:auto;'><img src='" + src + "' border='0' onload='ck_img_size(this,true)' onabort='ck_img_size(this,false)'><br><img src='spacer.gif' height='5px'><br><div class='font02'><table height=20 border=0 cellpadding=0 cellspacing=0 align=right><tr><td class=font02>Photo by <a href='http://www.flickr.com/photos/" + owner + "/" + photonum + "' target='_blank' class='font02' rel=nofollow>" + unescape(ownername) + "</a></td><td><img src=spacer.gif width=5><img src=images/cc.jpg><img src=spacer.gif width=5></td><td class=font02> | Flickr</td></tr></table></div></div>"; 
}

function changeOurImg(src,title,ownername,ownernum,photo_id) { 
		document.getElementById("targetArea").innerHTML = "<img src='spacer.gif' height='9px'><br><span class='font01'>" + unescape(title) +"</span><br><img src='spacer.gif' height='5px'><br><img src='" + src + "' border='0' onload='ck_img_size(this,true)' onabort='ck_img_size(this,false)'><br><img src='spacer.gif' height='5px'><br><div class='font02'>Photo by <a href='index.php?option=com_comprofiler&task=userProfile&user=" + ownernum + "' target='_self' class='font02' rel=nofollow>" + unescape(ownername) + "</a></div>"; 
}

function confirm_del(lcc, photo_id) 
{ 
    if(confirm("Do you really want to delete your photo?")) 
    { 
        location.href="index.php?option=com_destinations&task=travelguide&action=del_flash_photo&lcc=" + lcc + "&photo_id=" + photo_id;
    } 
    return false; 
} 


function changeVideo(src,title) { 
    document.getElementById("targetArea").innerHTML = "<span class='font01'>" + unescape(title) +"</span><br><img src='spacer.gif' height='5px'><br><embed src='" + src + "' type=application/x-mplayer2 width='320' height='280' showpositioncontrols='true' ShowTracker='0' ShowStatusBar='1' volume='0' EnableContextMenu='false'></embed><br><br>"; 
}

function changeFlash(src,title) { 
   	document.getElementById("targetArea").innerHTML = "<span class='font01'>" + unescape(title) +"</span><br><img src='spacer.gif' height='5px'><br><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='320' height='280'><param name='movie' value='buffer.swf?yj=" + src + "'><param name='quality' value='high'><embed src='buffer.swf?yj=" + src + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='320' height='280'></embed></object><br><br>"; 
}

function change360(src,title) { 
    document.getElementById("targetArea2").innerHTML = "<span class='font01'>" + title +"</span><br><br><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='320' height='280'><param name='movie' value='buffer.swf?yj=" + src + "'><param name='quality' value='high'><embed src='buffer.swf?yj=" + src + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='320' height='280'></embed></object><br><br>"; 
}

function ck_img_size(this_s,bool) 
{ 
if(bool){ 
limit_w = '457'; 
limit_h = '400'; 
if(this_s.width > limit_w){ 
this_s.width = limit_w; 
}else if(this_s.height > limit_h){ 
this_s.height > limit_h; 
} 
}else{ 
this_s.title = '[¿À·ù]'+this_s.title; 
//this_s.src=''; //¿À·ù°¡ ³µÀ» ¶§ º¸¿©ÁÙ ÀÌ¹ÌÁö 
this_s.width = 30; 
this_s.height = 30; 
} 
} 

